Skip to content

Commit 10d894a

Browse files
committed
Cherry-pick PR 13133 into release-2.25.0 branch
1 parent b9ef58d commit 10d894a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

sdks/java/bom/build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@ assemble.dependsOn copyPom
6666
// the pom.xml generation and have the publish tasks depend on `copyPom` instead.
6767
tasks.whenTaskAdded { task ->
6868
if (task.name == 'generatePomFileForMavenJavaPublication') {
69-
task.enabled = false
69+
// Ensures the pom file is signed later if we are performing a release (see BEAM-11068)
70+
task.doLast {
71+
copy {
72+
from 'pom.xml.template'
73+
into mavenJavaDir
74+
rename 'pom.xml.template', 'pom-default.xml'
75+
expand(version: project.version, modules: bomModuleNames)
76+
}
77+
}
7078
} else if (task.name.startsWith('publishMavenJavaPublication')) {
7179
task.dependsOn copyPom
7280
}

0 commit comments

Comments
 (0)