Skip to content

Commit 978868b

Browse files
committed
fix gemini
1 parent 2a44ea8 commit 978868b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,8 +1657,10 @@ class BeamModulePlugin implements Plugin<Project> {
16571657
executable = "${testJavaHome}/bin/java"
16581658
}
16591659
// redirect java exec tasks (expansion service, run, shadowJar execs) to specified JDK
1660-
project.tasks.withType(JavaExec).configureEach {
1661-
executable = "${testJavaHome}/bin/java"
1660+
if (testJavaHome) {
1661+
project.tasks.withType(JavaExec).configureEach {
1662+
executable = "${testJavaHome}/bin/java"
1663+
}
16621664
}
16631665
}
16641666

0 commit comments

Comments
 (0)