Skip to content

Commit d25aaa9

Browse files
committed
maven correct signing
1 parent bc3171f commit d25aaa9

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
@@ -117,12 +117,6 @@ tasks.withType<Javadoc> {
117117
}
118118
}
119119

120-
signing {
121-
// Only sign if a key has been configured in gradle.properties
122-
isRequired = providers.gradleProperty("signing.keyId").isPresent
123-
sign(publishing.publications)
124-
}
125-
126120
publishing {
127121
repositories {
128122
maven {
@@ -196,6 +190,13 @@ publishing {
196190
}
197191
}
198192

193+
194+
signing {
195+
// Only sign if a key has been configured in gradle.properties
196+
isRequired = providers.gradleProperty("signing.keyId").isPresent
197+
sign(publishing.publications["maven"])
198+
}
199+
199200
dependencies {
200201
// Compile and test with the last 7.x version to make sure transition scenarios where
201202
// the Java API client coexists with a 7.x HLRC work fine

0 commit comments

Comments
 (0)