You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2025/05/29 03:33:56 UTC
(beam) branch java11container updated: Fix Samza PVR
This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch java11container
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/java11container by this push:
new e7a2ad07ef2 Fix Samza PVR
e7a2ad07ef2 is described below
commit e7a2ad07ef2a2f2e30d9fc0148991395c699d3b1
Author: Yi Hu <ya...@google.com>
AuthorDate: Wed May 28 23:33:45 2025 -0400
Fix Samza PVR
---
.../groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 880531ee90f..c6ee2ab76d7 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -455,10 +455,11 @@ class BeamModulePlugin implements Plugin<Project> {
}
/** Get version for Java SDK container */
- static def getSupportedJavaVersion() {
- if (JavaVersion.current() <= JavaVersion.VERSION_11) {
+ static def getSupportedJavaVersion(String assignedVersion = null) {
+ JavaVersion ver = assignedVersion ? JavaVersion.toVersion(assignedVersion) : JavaVersion.current()
+ if (ver <= JavaVersion.VERSION_11) {
return 'java11'
- } else if (JavaVersion.current() <= JavaVersion.VERSION_17) {
+ } else if (ver <= JavaVersion.VERSION_17) {
return 'java17'
} else {
return 'java21'
@@ -2649,8 +2650,8 @@ class BeamModulePlugin implements Plugin<Project> {
// see https://issues.apache.org/jira/browse/BEAM-6698
maxHeapSize = '4g'
if (config.environment == PortableValidatesRunnerConfiguration.Environment.DOCKER) {
- def ver = project.findProperty('testJavaVersion')
- def javaContainerSuffix = ver ? "java$ver" : getSupportedJavaVersion()
+ String ver = project.findProperty('testJavaVersion')
+ def javaContainerSuffix = getSupportedJavaVersion(ver)
dependsOn ":sdks:java:container:${javaContainerSuffix}:docker"
}
}