From 7962e8b91230c02adf3e15e714f1d8621e62adeb Mon Sep 17 00:00:00 2001 From: Philipp Schmelter Date: Fri, 6 Dec 2024 15:23:02 +0100 Subject: [PATCH] debug --- gradle/scripts/mavenCentralPublish.gradle | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/gradle/scripts/mavenCentralPublish.gradle b/gradle/scripts/mavenCentralPublish.gradle index 650a1826b6..66479b74ab 100644 --- a/gradle/scripts/mavenCentralPublish.gradle +++ b/gradle/scripts/mavenCentralPublish.gradle @@ -14,6 +14,14 @@ if (project.hasProperty('user') && project.hasProperty('password') && project.ha // snapshot version differs from normal version String versionString = project.getProperty('deployVersion') + signing { + useInMemoryPgpKeys( + findProperty('signingKeyId'), + findProperty('signingKey'), + findProperty('signingPassword') + ) + sign publishing.publications.mavenJava + } publishing { publications { @@ -80,18 +88,6 @@ if (project.hasProperty('user') && project.hasProperty('password') && project.ha } } } - signing { - useInMemoryPgpKeys( - findProperty('signingKeyId'), - findProperty('signingKey'), - findProperty('signingPassword') - ) - sign publishing.publications.mavenJava - } - - tasks.withType(Sign) { - onlyIf { !project.version.endsWith('SNAPSHOT') } - } } model {