Skip to content

Commit 0452c4f

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

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
@@ -121,6 +121,7 @@ tasks.register('sign') {
121121
}
122122

123123
var signingExtension = project.getExtensions().getByType(SigningExtension) as SigningExtension
124+
signingExtension.sign publishing.publications.publishedArtifacts
124125

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

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

0 commit comments

Comments
 (0)