Skip to content

Commit

Permalink
Allow references to staging jars.
Browse files Browse the repository at this point in the history
Also fix the release script to refresh dependencies.
  • Loading branch information
Capstan committed Jan 6, 2020
1 parent 506d4c9 commit 98260af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ repositories {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
/* Allow staging references for last pre-release testing. */
if (project.properties.containsKey("sonatypeUsername")) {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = project.properties["sonatypeUsername"]
password = project.properties["sonatypePassword"]
}
}
}
}

/*
Expand Down
2 changes: 1 addition & 1 deletion dorelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
# 5. Login as sonatypeUsername
# 6. Follow the instructions here: http://central.sonatype.org/pages/releasing-the-deployment.html

./gradlew clean test uploadArchives
./gradlew --refresh-dependencies clean test uploadArchives

0 comments on commit 98260af

Please sign in to comment.