We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a7c18 commit 6687ba5Copy full SHA for 6687ba5
build.gradle.kts
@@ -128,6 +128,8 @@ allprojects {
128
}
129
130
plugins.withId("maven-publish") {
131
+ plugins.apply("signing")
132
+
133
val publishTask = tasks.named("publish")
134
135
postReleaseTask.configure {
@@ -194,6 +196,17 @@ allprojects {
194
196
195
197
198
199
200
+ tasks.withType<Sign>().configureEach {
201
+ onlyIf { System.getenv("CI") == "true" }
202
+ }
203
204
+ configure<SigningExtension> {
205
+ val signingKey = System.getenv("GPG_PRIVATE_KEY")
206
+ val signingPassword = System.getenv("GPG_PASSPHRASE")
207
+ useInMemoryPgpKeys(signingKey, signingPassword)
208
+ sign(the<PublishingExtension>().publications["maven"])
209
210
211
212
0 commit comments