Skip to content

Commit

Permalink
Handle testJavaVersion in createPortableValidatesRunnerTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Abacn committed Aug 15, 2024
1 parent 249243e commit ddaa8f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,8 @@ class BeamModulePlugin implements Plugin<Project> {
// see https://issues.apache.org/jira/browse/BEAM-6698
maxHeapSize = '4g'
if (config.environment == PortableValidatesRunnerConfiguration.Environment.DOCKER) {
def javaContainerSuffix = getSupportedJavaVersion()
def ver = project.findProperty('testJavaVersion')
def javaContainerSuffix = ver ? "java$ver" : getSupportedJavaVersion()
dependsOn ":sdks:java:container:${javaContainerSuffix}:docker"
}
}
Expand Down

0 comments on commit ddaa8f2

Please sign in to comment.