Skip to content

Commit fd7f008

Browse files
committed
maven correct signing
1 parent c36d6a3 commit fd7f008

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java-client/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ publishing {
180180
}
181181
}
182182

183+
184+
signing {
185+
// Only sign if a key has been configured in gradle.properties
186+
isRequired = providers.gradleProperty("signing.keyId").isPresent
187+
sign(publishing.publications["maven"])
188+
}
189+
183190
dependencies {
184191
// Compile and test with the last 7.x version to make sure transition scenarios where
185192
// the Java API client coexists with a 7.x HLRC work fine

0 commit comments

Comments
 (0)