We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a57cfb0 commit 4ae96cfCopy full SHA for 4ae96cf
instrumentation/runtime-telemetry/runtime-telemetry-java17/library/build.gradle.kts
@@ -57,4 +57,17 @@ tasks {
57
dependsOn(testPS)
58
dependsOn(testSerial)
59
}
60
+
61
+ tasks {
62
+ compileJava {
63
+ // We compile this module for java 8 because it is used as a dependency in spring-boot-autoconfigure.
64
+ // If this module is compiled for java 17 then gradle can figure out based on the metadata that
65
+ // spring-boot-autoconfigure has a dependency that requires 17 and fails the build when it is used
66
+ // in a project that targets an earlier java version.
67
+ // https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/13384
68
+ sourceCompatibility = "1.8"
69
+ targetCompatibility = "1.8"
70
+ options.release.set(null as Int?)
71
+ }
72
73
0 commit comments