File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ uploadArchives {
32
32
beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
33
33
34
34
repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
35
- authentication(userName : ossrhUsername, password : ossrhPassword)
35
+ authentication(userName : hasProperty( ' ossrhUsername' ) ? ossrhUsername : ' ' , password: hasProperty( ' ossrhPassword' ) ? ossrhPassword : ' ' )
36
36
}
37
37
38
38
snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
39
- authentication(userName : ossrhUsername, password : ossrhPassword)
39
+ authentication(userName : hasProperty( ' ossrhUsername' ) ? ossrhUsername : ' ' , password: hasProperty( ' ossrhPassword' ) ? ossrhPassword : ' ' )
40
40
}
41
41
42
42
pom. project {
You can’t perform that action at this time.
0 commit comments