diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index ed5009b38cc7d..61caf1bbbe26b 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -17,6 +17,7 @@ * under the License. */ +import org.gradle.internal.jvm.Jvm import org.gradle.util.GradleVersion plugins { @@ -225,8 +226,13 @@ if (project != rootProject) { } check.dependsOn(integTest) + // for now we hardcode the tests for our build to use the gradle jvm. + tasks.withType(Test).configureEach { + it.executable = Jvm.current().getJavaExecutable() + } + /* - * We alread configure publication and we don't need or want this one that + * We already configure publication and we don't need or want this one that * comes from the java-gradle-plugin. */ afterEvaluate {