File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ before_install:
38
38
# verify files exist in right paths
39
39
- find $ANDROID_HOME/build-tools
40
40
- file $ANDROID_HOME/build-tools/18.0.1/aapt
41
- - echo "nexusUsername=dummy" >> gradle.properties
42
- - echo "nexusPassword=dummy" >> gradle.properties
43
41
- echo "nexusUsername=dummy" >> library/gradle.properties
44
42
- echo "nexusPassword=dummy" >> library/gradle.properties
43
+
Original file line number Diff line number Diff line change @@ -16,22 +16,18 @@ if (isReleaseBuild()) {
16
16
sonatypeRepositoryUrl = " https://oss.sonatype.org/content/repositories/snapshots/"
17
17
}
18
18
19
- if (! signing. hasProperty(' password' )) {
19
+ if (ext . hasProperty( ' signing.keyId ' ) && ! ext . hasProperty(' signing. password' )) {
20
20
if (System . console())
21
- allprojects {
22
- ext. set(' signing.password' , System . console(). readPassword(" \n\$ Type in GPG key password: " ))
23
- }
21
+ ext. set(' signing.password' , System . console(). readPassword(" \n\$ Type in GPG key password: " ))
24
22
else
25
- allprojects { ext. set(' signing.password' , ' dummy' ) }
23
+ ext. set(' signing.password' , ' dummy' )
26
24
}
27
25
28
- if (! project . ext. hasProperty(' nexusPassword' )) {
26
+ if (! ext. hasProperty(' nexusPassword' )) {
29
27
if (System . console())
30
- allprojects {
31
- project. ext. set(' nexusPassword' , new String (System . console(). readPassword(" \n\$ Type in password for Sonatype nexus account ${ nexusUsername} : " )))
32
- }
28
+ project. ext. set(' nexusPassword' , new String (System . console(). readPassword(" \n\$ Type in password for Sonatype nexus account ${ nexusUsername} : " )))
33
29
else
34
- allprojects { project. ext. set(' nexusPassword' , ' dummy' ) }
30
+ project. ext. set(' nexusPassword' , ' dummy' )
35
31
}
36
32
37
33
afterEvaluate { project ->
You can’t perform that action at this time.
0 commit comments