Skip to content

Commit 3e2a990

Browse files
committed
bump min java version
1 parent 9d521ea commit 3e2a990

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

integration-tests/graal-incubating/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,19 @@ dependencies {
2626
implementation(project(":api:incubator"))
2727
}
2828

29-
// org.graalvm.buildtools.native plugin requires java 11+ as of version 0.9.26
29+
// org.graalvm.buildtools.native plugin requires java 17+ as of version 0.11.1
3030
// https://github.com/graalvm/native-build-tools/blob/master/docs/src/docs/asciidoc/index.adoc
31+
tasks {
32+
withType<JavaCompile>().configureEach {
33+
sourceCompatibility = "17"
34+
targetCompatibility = "17"
35+
options.release.set(17)
36+
}
37+
withType<Test>().configureEach {
38+
val testJavaVersion: String? by project
39+
enabled = !testJavaVersion.equals("8")
40+
}
41+
}
3142

3243
graalvmNative {
3344
binaries {

integration-tests/graal/build.gradle.kts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@ dependencies {
2424
implementation(project(":exporters:otlp:all"))
2525
}
2626

27-
// org.graalvm.buildtools.native plugin requires java 11+ as of version 0.9.26
27+
// org.graalvm.buildtools.native plugin requires java 17+ as of version 0.11.1
2828
// https://github.com/graalvm/native-build-tools/blob/master/docs/src/docs/asciidoc/index.adoc
29+
tasks {
30+
withType<JavaCompile>().configureEach {
31+
sourceCompatibility = "17"
32+
targetCompatibility = "17"
33+
options.release.set(17)
34+
}
35+
withType<Test>().configureEach {
36+
val testJavaVersion: String? by project
37+
enabled = !testJavaVersion.equals("8")
38+
}
39+
}
2940

3041
graalvmNative {
3142
binaries {

0 commit comments

Comments
 (0)