Skip to content

Commit 976abd1

Browse files
committed
Allow references to staging jars.
Also refresh dependencies when building for release.
1 parent 0cf8636 commit 976abd1

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
@@ -55,6 +55,16 @@ repositories {
5555
url "https://oss.sonatype.org/content/repositories/snapshots"
5656
}
5757
}
58+
/* Allow staging references for last pre-release testing. */
59+
if (project.properties.containsKey("sonatypeUsername")) {
60+
maven {
61+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
62+
credentials {
63+
username = project.properties["sonatypeUsername"]
64+
password = project.properties["sonatypePassword"]
65+
}
66+
}
67+
}
5868
}
5969

6070
/*

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)