File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,10 @@ ext["ossrhPassword"] = ''
77ext[" sonatypeStagingProfileId" ] = ' '
88
99File secretPropsFile = project. rootProject. file(' local.properties' )
10- if (secretPropsFile. exists()) {
10+ if (! secretPropsFile. exists()) {
1111 Properties p = new Properties ()
1212 new FileInputStream (secretPropsFile). withCloseable { is -> p. load(is) }
1313 p. each { name , value -> ext[name] = value }
14- } else {
15- def localProperties = new Properties ()
16- localProperties. load(new FileInputStream (rootProject. file(" local.properties" )))
17-
18- ext[" ossrhUsername" ] = localProperties[' mavenCentralUsername' ]
19- ext[" ossrhPassword" ] = localProperties[' mavenCentralPassword' ]
20- ext[" sonatypeStagingProfileId" ] = localProperties[' sonatypeStagingProfileId' ]
21- ext[" signing.keyId" ] = localProperties[' signing.keyId' ]
22- ext[" signing.password" ] = localProperties[' signing.password' ]
23- ext[" signing.secretKeyRingFile" ] = localProperties[' signing.secretKeyRingFile' ]
2414}
2515
2616nexusPublishing {
You can’t perform that action at this time.
0 commit comments