File tree Expand file tree Collapse file tree
javaagent-declarative-configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ plugins {
33 id(" com.gradleup.shadow" )
44}
55
6+ java {
7+ toolchain {
8+ languageVersion.set(JavaLanguageVersion .of(8 ))
9+ }
10+ }
11+
612dependencies {
713 // Use BOM to manage OpenTelemetry dependency versions
814 compileOnly(platform(" io.opentelemetry:opentelemetry-bom:1.56.0" ))
@@ -23,4 +29,4 @@ dependencies {
2329
2430tasks.assemble {
2531 dependsOn(tasks.shadowJar)
26- }
32+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ plugins {
66group = " org.example"
77version = " 1.0-SNAPSHOT"
88
9+ java {
10+ toolchain {
11+ languageVersion.set(JavaLanguageVersion .of(8 ))
12+ }
13+ }
14+
915repositories {
1016 mavenCentral()
1117}
@@ -20,4 +26,4 @@ tasks.jar {
2026 }
2127 duplicatesStrategy = DuplicatesStrategy .EXCLUDE
2228 from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
23- }
29+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ plugins {
66 id(" org.springframework.boot" ) version " 3.5.8"
77}
88
9+ java {
10+ toolchain {
11+ // due to Spring Boot 3 requirement, not because of declarative config support
12+ languageVersion.set(JavaLanguageVersion .of(17 ))
13+ }
14+ }
15+
916description = " OpenTelemetry Java Agent Declarative Configuration Example"
1017val moduleName by extra { " io.opentelemetry.examples.javaagent.declarative" }
1118
You can’t perform that action at this time.
0 commit comments