File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ task uploadMavenCentral(type:Upload, dependsOn: signArchives) {
2222 // To test deployment locally, use the following instead of oss.sonatype.org
2323 // repository(url: "file://localhost/${rootProject.rootDir}/repo")
2424
25+ def sonatypeUsername = rootProject. hasProperty(' sonatypeUsername' )? rootProject. sonatypeUsername: ' '
26+ def sonatypePassword = rootProject. hasProperty(' sonatypePassword' )? rootProject. sonatypePassword: ' '
27+
2528 repository(url : ' https://oss.sonatype.org/service/local/staging/deploy/maven2' ) {
26- authentication(userName : rootProject . sonatypeUsername, password : rootProject . sonatypePassword)
29+ authentication(userName : sonatypeUsername, password : sonatypePassword)
2730 }
2831
2932 snapshotRepository(url : ' https://oss.sonatype.org/content/repositories/snapshots/' ) {
30- authentication(userName : rootProject . sonatypeUsername, password : rootProject . sonatypePassword)
33+ authentication(userName : sonatypeUsername, password : sonatypePassword)
3134 }
3235
3336 // Prevent datastamp from being appending to artifacts during deployment
You can’t perform that action at this time.
0 commit comments