diff --git a/build.gradle.kts b/build.gradle.kts index 6c71af0..0b3a506 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -76,7 +76,10 @@ java { } signing { useGpgCmd() - sign(configurations.archives.get()) + val secretKey = project.properties["secretSigningKey"].toString() + val secretKeyPassword = project.properties["secretSigningKeyPassword"].toString() + useInMemoryPgpKeys(secretKey, secretKeyPassword) + sign(publishing.publications) } tasks.getByName("test") { useJUnitPlatform()