File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ will now require that the spec is annotated with <<parallel_execution.adoc#isola
5959
6060* Fix vararg handling in SpyStatic spockIssue:2161[]
6161* Fix incompatibility with JUnit 6 in OSGi environment spockIssue:2231[]
62+ * OSGi: Pin the `Require-Capability:osgi.ee=JavaSE` to Java `8` spockPull:2233[]
6263
6364== 2.4-M6 (2025-04-15)
6465
Original file line number Diff line number Diff line change @@ -91,6 +91,18 @@ tasks.named("jar", Jar) {
9191 * https://bnd.bndtools.org/instructions/reproducible.html
9292 */
9393 ' -reproducible' : ' true' ,
94+ /*
95+ * Disable automatic EE detection: https://bnd.bndtools.org/instructions/noee.html
96+ * Which would generate something like:
97+ * {@code Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=21))"}
98+ * in Java 21, which is wrong, because we want to be runnable in Java 8 and newer.
99+ *
100+ * Note: Currently in bnd 7.1.0 and Java 25 you will get:
101+ * {@code Require-Capability: osgi.ee;filter:="(osgi.ee=UNKNOWN)"}
102+ */
103+ ' -noee' : ' true' ,
104+ // Instead set the osgi.ee manually to Java 8
105+ ' Require-Capability' : ' osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"'
94106 )
95107 }
96108}
You can’t perform that action at this time.
0 commit comments