Run Build tests with proper java version

This commit is contained in:
Alpar Torok 2018-12-05 14:44:05 +02:00
parent 73ceaad03a
commit d531fab4b3
1 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,11 @@ if (project != rootProject) {
test {
include "**/*Tests.class"
exclude "**/*IT.class"
// The test task is configured to runtimeJava version, but we build-tools doesn't support all of them, so test
// with compiler instead on the ones that are too old.
if (project.runtimeJavaVersion <= JavaVersion.VERSION_1_10) {
jvm = "${project.compilerJavaHome}/bin/java"
}
}
// This can't be an RandomizedTestingTask because we can't yet reference it