Skip to content

Commit 9fb2e0c

Browse files
committed
Run Build tests with proper java version
1 parent ca6925f commit 9fb2e0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildSrc/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ if (project != rootProject) {
184184
test {
185185
include "**/*Tests.class"
186186
exclude "**/*IT.class"
187+
// The test task is configured to runtimeJava version, but we build-tools doesn't support all of them, so test
188+
// with compiler instead on the ones that are too old.
189+
if (project.runtimeJavaVersion <= JavaVersion.VERSION_1_10) {
190+
jvm = "${project.compilerJavaHome}/bin/java"
191+
}
187192
}
188193

189194
// This can't be an RandomizedTestingTask because we can't yet reference it

0 commit comments

Comments
 (0)