Skip to content

Commit 503c254

Browse files
committed
add signing
1 parent 1364e1d commit 503c254

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
`java-library`
66
`maven-publish`
77
jacoco
8+
signing
89
id("org.sonarqube") version "4.4.1.3373"
910
id("org.cadixdev.licenser") version "0.6.1"
1011
id("me.qoomon.git-versioning") version "6.4.3"
@@ -122,6 +123,15 @@ license {
122123
exclude("**/*.xml")
123124
}
124125

126+
signing {
127+
val signingInMemoryKey: String? by project // env.ORG_GRADLE_PROJECT_signingInMemoryKey
128+
val signingInMemoryPassword: String? by project // env.ORG_GRADLE_PROJECT_signingInMemoryPassword
129+
if (signingInMemoryKey != null) {
130+
useInMemoryPgpKeys(signingInMemoryKey, signingInMemoryPassword)
131+
sign(publishing.publications)
132+
}
133+
}
134+
125135
publishing {
126136
repositories {
127137
maven {

0 commit comments

Comments
 (0)