File tree Expand file tree Collapse file tree 9 files changed +54
-0
lines changed
declarative-configuration Expand file tree Collapse file tree 9 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ plugins {
66description = " OpenTelemetry Example for Declarative Configuration"
77val moduleName by extra { " io.opentelemetry.examples.fileconfig" }
88
9+ java {
10+ toolchain {
11+ languageVersion.set(JavaLanguageVersion .of(8 ))
12+ }
13+ }
14+
915dependencies {
1016 implementation(" io.opentelemetry:opentelemetry-api" )
1117 implementation(" io.opentelemetry:opentelemetry-sdk" )
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ plugins {
44
55val moduleName by extra { " io.opentelemetry.examples.docs.configuration" }
66
7+ java {
8+ toolchain {
9+ languageVersion.set(JavaLanguageVersion .of(11 ))
10+ }
11+ }
12+
713dependencies {
814 implementation(" io.opentelemetry:opentelemetry-api" )
915
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ plugins {
44
55val moduleName by extra { " io.opentelemetry.examples.docs.configuration" }
66
7+ java {
8+ toolchain {
9+ languageVersion.set(JavaLanguageVersion .of(11 ))
10+ }
11+ }
12+
713dependencies {
814 implementation(" io.opentelemetry:opentelemetry-sdk" )
915 implementation(" io.opentelemetry:opentelemetry-sdk-extension-autoconfigure" )
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
77
88val moduleName by extra { " io.opentelemetry.examples.docs.exporters" }
99
10+ java {
11+ toolchain {
12+ languageVersion.set(JavaLanguageVersion .of(17 ))
13+ }
14+ }
15+
1016dependencies {
1117 implementation(platform(SpringBootPlugin .BOM_COORDINATES ))
1218 implementation(platform(" io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.1" ))
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
77
88val moduleName by extra { " io.opentelemetry.examples.docs.getting-started" }
99
10+ java {
11+ toolchain {
12+ languageVersion.set(JavaLanguageVersion .of(17 ))
13+ }
14+ }
15+
1016dependencies {
1117 implementation(platform(SpringBootPlugin .BOM_COORDINATES ))
1218 implementation(platform(" io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.1" ))
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
77
88val moduleName by extra { " io.opentelemetry.examples.docs.spring-starter" }
99
10+ java {
11+ toolchain {
12+ languageVersion.set(JavaLanguageVersion .of(17 ))
13+ }
14+ }
15+
1016dependencies {
1117 implementation(platform(SpringBootPlugin .BOM_COORDINATES ))
1218 implementation(platform(" io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.1" ))
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
77}
88
99description = " OpenTelemetry Example for Micrometer Shim"
10+
11+ java {
12+ toolchain {
13+ languageVersion.set(JavaLanguageVersion .of(17 ))
14+ }
15+ }
1016val moduleName by extra { " io.opentelemetry.examples.micrometer-shim" }
1117
1218val bootRun = tasks.named<BootRun >(" bootRun" ) {
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
77}
88
99description = " OpenTelemetry Example for Spring native images"
10+
11+ java {
12+ toolchain {
13+ languageVersion.set(JavaLanguageVersion .of(17 ))
14+ }
15+ }
1016val moduleName by extra { " io.opentelemetry.examples.native" }
1117
1218dependencies {
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ plugins {
1010description = " OpenTelemetry Example for Telemetry Testing"
1111val moduleName by extra { " io.opentelemetry.examples.telemetry-testing" }
1212
13+ java {
14+ toolchain {
15+ languageVersion.set(JavaLanguageVersion .of(17 ))
16+ }
17+ }
18+
1319val bootRun = tasks.named<BootRun >(" bootRun" ) {
1420 mainClass = " io.opentelemetry.example.javagent.Application"
1521}
You can’t perform that action at this time.
0 commit comments