Skip to content

Commit ae5de84

Browse files
authored
Merge branch 'master' into vampire/mixin-spec-internals
2 parents 5288e91 + 4ad40b1 commit ae5de84

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/release_notes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

spock-core/core.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)