File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ tasks {
5151
5252 // We use animal sniffer
5353 disable(" Java8ApiChecker" )
54- disable(" AndroidJdkLibsChecker" )
5554
5655 // apparently disabling android doesn't disable this
5756 disable(" StaticOrDefaultInterfaceMethod" )
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ otelJava.moduleName.set("io.opentelemetry.javaagent.customchecks")
1414// We also can't seem to use the toolchain without the "--release" option. So disable everything.
1515
1616java {
17- sourceCompatibility = JavaVersion .VERSION_17
18- targetCompatibility = JavaVersion .VERSION_17
17+ sourceCompatibility = JavaVersion .VERSION_21
18+ targetCompatibility = JavaVersion .VERSION_21
1919 toolchain {
2020 languageVersion.set(null as JavaLanguageVersion ? )
2121 }
@@ -43,17 +43,17 @@ tasks {
4343 }
4444 }
4545
46- // only test on java 17 +
46+ // only test on java 21 +
4747 val testJavaVersion: String? by project
48- if (testJavaVersion != null && Integer .valueOf(testJavaVersion) < 17 ) {
48+ if (testJavaVersion != null && Integer .valueOf(testJavaVersion) < 21 ) {
4949 test {
5050 enabled = false
5151 }
5252 }
5353}
5454
5555tasks.withType<Test >().configureEach {
56- // required on jdk17
56+ // required when accessing javac internals
5757 jvmArgs(" --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" )
5858 jvmArgs(" --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" )
5959 jvmArgs(" --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED" )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ rootProject.extra["versions"] = dependencyVersions
99
1010
1111val autoValueVersion = " 1.11.0"
12- val errorProneVersion = " 2.42 .0"
12+ val errorProneVersion = " 2.43 .0"
1313val jmhVersion = " 1.37"
1414// Mockito 5.x.x requires Java 11 https://github.com/mockito/mockito/releases/tag/v5.0.0
1515val mockitoVersion = " 4.11.0"
You can’t perform that action at this time.
0 commit comments