Skip to content

Commit 98260af

Browse files
committed
Allow references to staging jars.
Also fix the release script to refresh dependencies.
1 parent 506d4c9 commit 98260af

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ repositories {
5454
url "https://oss.sonatype.org/content/repositories/snapshots"
5555
}
5656
}
57+
/* Allow staging references for last pre-release testing. */
58+
if (project.properties.containsKey("sonatypeUsername")) {
59+
maven {
60+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
61+
credentials {
62+
username = project.properties["sonatypeUsername"]
63+
password = project.properties["sonatypePassword"]
64+
}
65+
}
66+
}
5767
}
5868

5969
/*

dorelease.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
# 5. Login as sonatypeUsername
1818
# 6. Follow the instructions here: http://central.sonatype.org/pages/releasing-the-deployment.html
1919

20-
./gradlew clean test uploadArchives
20+
./gradlew --refresh-dependencies clean test uploadArchives
2121

0 commit comments

Comments
 (0)