Skip to content

Commit

Permalink
Fixed publish task for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
depryf committed Oct 13, 2023
1 parent 0864020 commit 9f56d27
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ publishing {

// setup JAR signing
signing {
required { !version.endsWith('-SNAPSHOT') }

String signingKey = project.findProperty('signing.armored.key') ?: ''
String signingPassword = project.findProperty('signing.armored.password') ?: ''

Expand Down Expand Up @@ -192,11 +194,6 @@ nexusPublishing {
}
}

// don't try to release a snapshot to a non-snapshot repository, that won't work anyway
if (version.endsWith('-SNAPSHOT')) {
gradle.startParameter.excludedTaskNames += 'closeAndReleaseSonatypeStagingRepository'
}

// Gradle wrapper, this allows to build the project without having to install Gradle!
wrapper {
gradleVersion = '8.4'
Expand Down

0 comments on commit 9f56d27

Please sign in to comment.