File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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/*
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments