Run Build tests with proper java version
This commit is contained in:
parent
73ceaad03a
commit
d531fab4b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue