Skip to content

Commit 8956c0a

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

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
@@ -125,6 +125,7 @@ tasks.register('sign') {
125125
}
126126

127127
var signingExtension = project.getExtensions().getByType(SigningExtension) as SigningExtension
128+
signingExtension.sign publishing.publications.publishedArtifacts
128129

129130
gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
130131
boolean wasSigningRequested = false
@@ -145,7 +146,7 @@ gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
145146
if ( ossrhUser == null || ossrhPass == null ) {
146147
throw new RuntimeException( "Cannot perform publishing to OSSRH without credentials." )
147148
}
148-
logger.lifecycle "Publishing groupId: '" + project.group + "', version: '" + project.version + "'"
149+
logger.lifecycle "Publishing {} : {} : {}", project.group, project.name, project.version
149150
}
150151

151152
if ( wasSigningRequested || wasPublishingRequested ) {
@@ -156,7 +157,6 @@ gradle.taskGraph.whenReady { TaskExecutionGraph graph ->
156157
var signingKey = resolveSigningKey()
157158
var signingPassword = resolveSigningPassphrase()
158159
signingExtension.useInMemoryPgpKeys( signingKey, signingPassword )
159-
signingExtension.sign publishing.publications.publishedArtifacts
160160
}
161161
else {
162162
// signing was not explicitly requested and we are not publishing to OSSRH,

0 commit comments

Comments
 (0)