Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ apply from: "$rootDir/gradle/slf4j-simple.gradle"

testJvmConstraints {
minJavaVersion = JavaVersion.VERSION_21
// Structured concurrency is a preview feature in Java 21. Methods (e.g. ShutdownOnFailure) used in this instrumentation test are no longer available in Java 25, so we set the max version to 24.
// See: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
maxJavaVersion = JavaVersion.VERSION_24
}

muzzle {
Expand All @@ -30,6 +27,14 @@ idea {
*/
addTestSuite('previewTest')

tasks.named("previewTest").configure {
testJvmConstraints {
// Structured concurrency is a preview feature in Java 21. Methods (e.g. ShutdownOnFailure) used in this instrumentation test are no longer available in Java 25, so we set the max version to 24.
// See: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
maxJavaVersion = JavaVersion.VERSION_24
}
}

// Set all compile tasks to use JDK21 but let instrumentation code targets 1.8 compatibility
tasks.withType(AbstractCompile).configureEach {
configureCompiler(it, 21, JavaVersion.VERSION_1_8)
Expand Down
Loading