Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter committed Dec 6, 2024
1 parent 5b5881b commit 7962e8b
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions gradle/scripts/mavenCentralPublish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7962e8b

Please sign in to comment.