File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,16 @@ publishing {
1515 repositories {
1616 maven {
1717 name = " Central"
18- url = if (version.toString().endsWith(" SNAPSHOT" )) {
19- // uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
20- uri(" https://oss.sonatype.org/content/repositories/snapshots" )
21- } else {
22- // uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2")
23- uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
18+ afterEvaluate {
19+ url = if (version.toString().endsWith(" SNAPSHOT" )) {
20+ // uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
21+ uri(" https://oss.sonatype.org/content/repositories/snapshots" )
22+ } else {
23+ // uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2")
24+ uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
25+ }
2426 }
27+
2528 credentials {
2629 username = properties[" ossrhUsername" ]?.toString() ? : System .getenv(" OSSRH_USERNAME" )
2730 password = properties[" ossrhPassword" ]?.toString() ? : System .getenv(" OSSRH_PASSWORD" )
You can’t perform that action at this time.
0 commit comments