Skip to content

Commit 728989c

Browse files
committed
Moved to org.scratchapi.scratchdsl
1 parent 1e50615 commit 728989c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

build.gradle.kts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ plugins {
1212
kotlin("plugin.serialization") version "2.0.10"
1313
}
1414

15-
group = "de.thecommcraft"
15+
group = "org.scratchapi"
1616
version = (System.getenv("GITHUB_REF_NAME")?.removePrefix("v")
17-
?: "0.0.1a2")
17+
?: "0.0.1a3")
1818

1919
java {
2020
withJavadocJar()
@@ -82,12 +82,16 @@ publishing {
8282
}
8383

8484
signing {
85-
System.getenv("GPG_PRIVATE_KEY")?.let {
86-
useInMemoryPgpKeys(
87-
System.getenv("GPG_PRIVATE_KEY"),
88-
System.getenv("GPG_PASSPHRASE")
89-
)
90-
} ?: useGpgCmd()
85+
if (System.getenv("USE_PGP_CMD_FOR_SCRATCH_DSL") == "true") {
86+
useGpgCmd()
87+
} else {
88+
System.getenv("GPG_PRIVATE_KEY")?.let {
89+
useInMemoryPgpKeys(
90+
System.getenv("GPG_PRIVATE_KEY"),
91+
System.getenv("GPG_PASSPHRASE")
92+
)
93+
} ?: useGpgCmd()
94+
}
9195
sign(publishing.publications["mavenJava"])
9296
}
9397

0 commit comments

Comments
 (0)