Skip to content

Commit d6e8282

Browse files
sebersolebeikov
authored andcommitted
HHH-18912 - ORM release process
https://hibernate.atlassian.net/browse/HHH-18912 (cherry picked from commit 96eefe3)
1 parent 800a800 commit d6e8282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/published-java-module.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ tasks.register('sign') {
120120
}
121121

122122
var signingExtension = project.getExtensions().getByType(SigningExtension) as SigningExtension
123+
signingExtension.sign publishing.publications.publishedArtifacts
123124

124125
gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
125126
boolean wasSigningRequested = false
@@ -140,7 +141,7 @@ gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
140141
if ( ossrhUser == null || ossrhPass == null ) {
141142
throw new RuntimeException( "Cannot perform publishing to OSSRH without credentials." )
142143
}
143-
logger.lifecycle "Publishing groupId: '" + project.group + "', version: '" + project.version + "'"
144+
logger.lifecycle "Publishing {} : {} : {}", project.group, project.name, project.version
144145
}
145146

146147
if ( wasSigningRequested || wasPublishingRequested ) {
@@ -151,7 +152,6 @@ gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
151152
var signingKey = resolveSigningKey()
152153
var signingPassword = resolveSigningPassphrase()
153154
signingExtension.useInMemoryPgpKeys( signingKey, signingPassword )
154-
signingExtension.sign publishing.publications.publishedArtifacts
155155
}
156156
else {
157157
// signing was not explicitly requested and we are not publishing to OSSRH,

0 commit comments

Comments
 (0)