@@ -5,18 +5,22 @@ plugins {
55 id(" otel.java-conventions" )
66
77 id(" com.google.cloud.tools.jib" )
8- id(" org.springframework.boot" ) version " 2.6.15 "
8+ id(" org.springframework.boot" ) version " 3.5.4 "
99}
1010
1111dependencies {
12- implementation(platform(" io.opentelemetry:opentelemetry-bom:1.0.0 " ))
12+ implementation(platform(" io.opentelemetry:opentelemetry-bom" ))
1313 implementation(platform(" org.springframework.boot:spring-boot-dependencies:2.6.15" ))
1414
1515 implementation(" io.opentelemetry:opentelemetry-api" )
1616 implementation(project(" :instrumentation-annotations" ))
1717 implementation(" org.springframework.boot:spring-boot-starter-web" )
1818}
1919
20+ otelJava {
21+ minJavaVersionSupported = JavaVersion .VERSION_17
22+ }
23+
2024configurations.runtimeClasspath {
2125 resolutionStrategy {
2226 // requires old logback (and therefore also old slf4j)
@@ -25,18 +29,11 @@ configurations.runtimeClasspath {
2529 }
2630}
2731
28- val targetJDK = project.findProperty(" targetJDK" ) ? : " 11 "
32+ val targetJDK = project.findProperty(" targetJDK" ) ? : " 17 "
2933
3034val tag = findProperty(" tag" )
3135 ? : DateTimeFormatter .ofPattern(" yyyyMMdd.HHmmSS" ).format(LocalDateTime .now())
3236
33- java {
34- // needed by jib to detect java version used in project
35- // for jdk9+ jib uses an entrypoint that doesn't work with jdk8
36- sourceCompatibility = JavaVersion .VERSION_1_8
37- targetCompatibility = JavaVersion .VERSION_1_8
38- }
39-
4037springBoot {
4138 buildInfo {
4239 }
0 commit comments