Skip to content

Commit 72a1fda

Browse files
committed
maven correct signing
1 parent 13f9f95 commit 72a1fda

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

java-client/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,6 @@ tasks.withType<Javadoc> {
116116
}
117117
}
118118

119-
signing {
120-
// Only sign if a key has been configured in gradle.properties
121-
isRequired = providers.gradleProperty("signing.keyId").isPresent
122-
sign(publishing.publications)
123-
}
124-
125119
publishing {
126120
repositories {
127121
maven {
@@ -210,6 +204,13 @@ publishing {
210204
}
211205
}
212206

207+
208+
signing {
209+
// Only sign if a key has been configured in gradle.properties
210+
isRequired = providers.gradleProperty("signing.keyId").isPresent
211+
sign(publishing.publications["maven"])
212+
}
213+
213214
dependencies {
214215
// Compile and test with the last 7.x version to make sure transition scenarios where
215216
// the Java API client coexists with a 7.x HLRC work fine

0 commit comments

Comments
 (0)