This is an automated email from the ASF dual-hosted git repository.

robinyqiu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new d4604dc  Ensure beam-sdks-java-bom.pom is signed during release
     new dd94875  Merge pull request #13133 from robinyqiu/sign-pom
d4604dc is described below

commit d4604dc84ff5c2359406b0b34f869c780a58f8c0
Author: Yueyang Qiu <robiny...@gmail.com>
AuthorDate: Fri Oct 16 15:04:33 2020 -0700

    Ensure beam-sdks-java-bom.pom is signed during release
---
 sdks/java/bom/build.gradle | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sdks/java/bom/build.gradle b/sdks/java/bom/build.gradle
index f462240..b8a71db 100644
--- a/sdks/java/bom/build.gradle
+++ b/sdks/java/bom/build.gradle
@@ -66,7 +66,15 @@ assemble.dependsOn copyPom
 // the pom.xml generation and have the publish tasks depend on `copyPom` 
instead.
 tasks.whenTaskAdded { task ->
   if (task.name == 'generatePomFileForMavenJavaPublication') {
-    task.enabled = false
+    // Ensures the pom file is signed later if we are performing a release 
(see BEAM-11068)
+    task.doLast {
+      copy {
+        from 'pom.xml.template'
+        into mavenJavaDir
+        rename 'pom.xml.template', 'pom-default.xml'
+        expand(version: project.version, modules: bomModuleNames)
+      }
+    }
   } else if (task.name.startsWith('publishMavenJavaPublication')) {
     task.dependsOn copyPom
   }

Reply via email to