Skip to content

Commit 4611ad6

Browse files
authored
Gradle: Ensure maven artifacts are signed. (#1709)
Added logging if the signing keys are missing. JAVA-5872
1 parent 2bd813e commit 4611ad6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

buildSrc/src/main/kotlin/conventions/publishing.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ tasks.withType<Jar> {
124124

125125
signing {
126126
if (signingKey.isPresent && signingPassword.isPresent) {
127-
logger.debug("[${project.displayName}] Signing is enabled")
127+
logger.info("[${project.displayName}] Signing is enabled")
128128
useInMemoryPgpKeys(signingKey.get(), signingPassword.get())
129+
sign(publishing.publications["maven"])
130+
} else {
131+
logger.info("[${project.displayName}] No Signing keys found, skipping signing configuration")
129132
}
130133
}
131134

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
version=5.5.0-SNAPSHOT
17+
version=5.5.1-SNAPSHOT
1818

1919
org.gradle.daemon=true
2020
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en

0 commit comments

Comments
 (0)