From bcc3e2535c71976d704144e0b3731b094f98d055 Mon Sep 17 00:00:00 2001 From: Yanan Hao Date: Tue, 13 Oct 2026 16:51:01 -0700 Subject: [PATCH] Fix Avro 1.11 test compile breaking publish; bump to 2.45.62 The 2.45.61 post-merge publish (run 37264486966) failed at :sdks:java:io:google-cloud-platform:compileTestJava because Avro 1.11 made Schema.Field#defaultValue() package-private. Publishing builds test jars, so the failure blocked publication of io-google-cloud-platform and the beam-auto-elr umbrella, leaving a partial 2.45.61 on JFrog and stalling auto-ELR. Use the public defaultVal() (same as upstream apache/beam#30638) and bump to 2.45.62 so the publish re-triggers on a clean version. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 2 +- gradle.properties | 4 ++-- .../beam/sdk/io/gcp/bigquery/BigQueryAvroUtilsTest.java | 2 +- 3 files changed, 4 insertions(+), 4 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 580b4ddc65c6..5389b0cec7da 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -398,7 +398,7 @@ class BeamModulePlugin implements Plugin { // Automatically use the official release version if we are performing a release // otherwise append '-SNAPSHOT' - project.version = '2.45.61' + project.version = '2.45.62' if (isLinkedin(project)) { project.ext.mavenGroupId = 'com.linkedin.beam' } diff --git a/gradle.properties b/gradle.properties index 142ebc670c02..626d78399753 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,8 +30,8 @@ signing.gnupg.useLegacyGpg=true # buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy. # To build a custom Beam version make sure you change it in both places, see # https://github.com/apache/beam/issues/21302. -version=2.45.61 -sdk_version=2.45.61 +version=2.45.62 +sdk_version=2.45.62 javaVersion=1.8 diff --git a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtilsTest.java b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtilsTest.java index f24796837e6d..110464626ca5 100644 --- a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtilsTest.java +++ b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryAvroUtilsTest.java @@ -144,7 +144,7 @@ public void testConvertGenericRecordToTableRow() throws Exception { } // After a Field is added to a Schema, it is assigned a position, so we can't simply reuse // the existing Field. - avroFields.add(new Schema.Field(field.name(), schema, field.doc(), field.defaultValue())); + avroFields.add(new Schema.Field(field.name(), schema, field.doc(), field.defaultVal())); } Schema avroSchema = Schema.createRecord(avroFields);