Skip to content

Commit

Permalink
Fixes the snapshot setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bseeger committed May 3, 2023
1 parent 81343e7 commit c4d1445
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ publishing {
// (created 2013) we are on the old servers (see https://issues.sonatype.org/browse/OSSRH-85469)
//def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
//def snapshotsRepoUrl = layoutBuildDirectory.dir('repos/snapshots')
if (version.endsWith("SNAPSHOT")) {
if (version.endsWith("-SNAPSHOT")) {
println("Creating a SNAPSHOT: ${version}")
url = "https://oss.sonatype.org/content/repositories/snapshots"
} else {
Expand All @@ -200,8 +200,10 @@ publishing {
}

signing {
useGpgCmd()
sign publishing.publications.mavenJava
if (!version.endsWith("-SNAPSHOT")) {
useGpgCmd()
sign publishing.publications.mavenJava
}
}

// javadoc {
Expand Down

0 comments on commit c4d1445

Please sign in to comment.