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) {
22
22
// To test deployment locally, use the following instead of oss.sonatype.org
23
23
// repository(url: "file://localhost/${rootProject.rootDir}/repo")
24
24
25
+ def sonatypeUsername = rootProject. hasProperty(' sonatypeUsername' )? rootProject. sonatypeUsername: ' '
26
+ def sonatypePassword = rootProject. hasProperty(' sonatypePassword' )? rootProject. sonatypePassword: ' '
27
+
25
28
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)
27
30
}
28
31
29
32
snapshotRepository(url : ' https://oss.sonatype.org/content/repositories/snapshots/' ) {
30
- authentication(userName : rootProject . sonatypeUsername, password : rootProject . sonatypePassword)
33
+ authentication(userName : sonatypeUsername, password : sonatypePassword)
31
34
}
32
35
33
36
// Prevent datastamp from being appending to artifacts during deployment
You can’t perform that action at this time.
0 commit comments