Skip to content

Commit 14ac371

Browse files
authored
Fix Java Example ARM PostCommit (#35154)
Fix Java Example ARM PostCommit
2 parents dd51c4c + 4c607a7 commit 14ac371

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

runners/google-cloud-dataflow-java/arm/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import groovy.json.JsonOutput
2020

21+
import static org.apache.beam.gradle.BeamModulePlugin.getSupportedJavaVersion
22+
2123
plugins { id 'org.apache.beam.module' }
2224
applyJavaNature(
2325
automaticModuleName: 'org.apache.beam.runners.dataflow',
@@ -79,10 +81,7 @@ dependencies {
7981
examplesJavaIntegrationTest project(path: ":examples:java", configuration: "testRuntimeMigration")
8082
}
8183

82-
def javaVer = "java8"
83-
if (project.hasProperty('testJavaVersion')) {
84-
javaVer = "java${project.getProperty('testJavaVersion')}"
85-
}
84+
def javaVer = getSupportedJavaVersion(project.findProperty('testJavaVersion') as String)
8685
def gcpProject = project.findProperty('gcpProject') ?: 'apache-beam-testing'
8786
def gcpRegion = project.findProperty('gcpRegion') ?: 'us-central1'
8887
def dataflowValidatesTempRoot = project.findProperty('gcpTempRoot') ?: 'gs://temp-storage-for-validates-runner-tests'

0 commit comments

Comments
 (0)