Skip to content

Commit 278ef46

Browse files
committed
add signing
1 parent 215923a commit 278ef46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xap-sdk/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
33
plugins {
44
kotlin("jvm")
55
id("java")
6+
id("signing")
67
id("maven-publish")
78
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
89
}
@@ -104,6 +105,14 @@ publishing {
104105
}
105106
}
106107

108+
signing {
109+
val signingKey = System.getenv("GPG_SECRET")
110+
val signingPassword = System.getenv("GPG_PASSPHRASE")
111+
112+
useInMemoryPgpKeys(signingKey, signingPassword)
113+
sign(publishing.publications)
114+
}
115+
107116
gradle.taskGraph.whenReady {
108117
if (hasTask(":publishSnapshots")) {
109118
rootProject.version = "1.0.0-SNAPSHOT"

0 commit comments

Comments
 (0)