From ee478eded04ef66ea2a2ceea2f71f782555ce9b6 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Thu, 2 Jan 2025 11:31:07 -0500 Subject: [PATCH] Make Beam expansion service shadowJar multi-release so it processes multi-release dependencies correctly (#33472) --- sdks/java/extensions/sql/expansion-service/build.gradle | 3 +++ sdks/java/io/expansion-service/build.gradle | 3 +++ .../io/google-cloud-platform/expansion-service/build.gradle | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sdks/java/extensions/sql/expansion-service/build.gradle b/sdks/java/extensions/sql/expansion-service/build.gradle index b8d78e4e1bb9..024041e40b36 100644 --- a/sdks/java/extensions/sql/expansion-service/build.gradle +++ b/sdks/java/extensions/sql/expansion-service/build.gradle @@ -48,5 +48,8 @@ task runExpansionService (type: JavaExec) { } shadowJar { + manifest { + attributes(["Multi-Release": true]) + } outputs.upToDateWhen { false } } \ No newline at end of file diff --git a/sdks/java/io/expansion-service/build.gradle b/sdks/java/io/expansion-service/build.gradle index a27a66b1f3dc..38bee450e752 100644 --- a/sdks/java/io/expansion-service/build.gradle +++ b/sdks/java/io/expansion-service/build.gradle @@ -34,6 +34,9 @@ configurations.runtimeClasspath { } shadowJar { + manifest { + attributes(["Multi-Release": true]) + } mergeServiceFiles() outputs.upToDateWhen { false } } diff --git a/sdks/java/io/google-cloud-platform/expansion-service/build.gradle b/sdks/java/io/google-cloud-platform/expansion-service/build.gradle index 01181721e9a4..b5ce11853f6c 100644 --- a/sdks/java/io/google-cloud-platform/expansion-service/build.gradle +++ b/sdks/java/io/google-cloud-platform/expansion-service/build.gradle @@ -49,5 +49,8 @@ task runExpansionService (type: JavaExec) { } shadowJar { + manifest { + attributes(["Multi-Release": true]) + } outputs.upToDateWhen { false } } \ No newline at end of file