Skip to content

Commit 78866d3

Browse files
committed
use java8 compatibility without relying on toolchain
1 parent b3e5416 commit 78866d3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

jmx-scraper/test-app/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ plugins {
55
description = "JMX metrics scraper - test application"
66

77
java {
8-
toolchain {
9-
languageVersion = JavaLanguageVersion.of(8)
10-
}
8+
sourceCompatibility = JavaVersion.VERSION_1_8
9+
targetCompatibility = JavaVersion.VERSION_1_8
1110
}
1211

1312
tasks {

jmx-scraper/test-webapp/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
}
1010

1111
java {
12-
toolchain {
13-
languageVersion = JavaLanguageVersion.of(8)
14-
}
12+
// keeping java 8 compatibility to allow running this sample app in most containers
13+
sourceCompatibility = JavaVersion.VERSION_1_8
14+
targetCompatibility = JavaVersion.VERSION_1_8
1515
}

0 commit comments

Comments
 (0)