imp: add check if info are in the gradle.properties
@@ -22,11 +22,27 @@ gradle.taskGraph.whenReady { taskGraph ->
Console console = System.console()
console.printf "\n\nWe have to sign some things in this build." +
"\n\nPlease enter your signing details.\n\n"
-
- def id = console.readLine("PGP Key Id: ")
- def file = console.readLine("PGP Secret Key Ring File (absolute path): ")
- def password = console.readPassword("PGP Private Key Password: ")
-
+ def id
+ def file
+ def password
+ if (pgpKeyId == null){
+ id = console.readLine("PGP Key Id: ")
+ } else {
+ id = pgpKeyId
+ console.printf "found id in properties: " + id
+ }
+ if (secringFilePath == null) {
+ file = console.readLine("PGP Secret Key Ring File (absolute path): ")
+ } else {
+ file = secringFilePath
+ console.printf "found pathfile in properties: " + file
+ }
+ if (pgpPassword == null) {
+ password = console.readPassword("PGP Private Key Password: ")
+ } else {
+ password = pgpPassword
+ console.printf "found password in properties: *******"
+ }
allprojects { ext."signing.keyId" = id }
allprojects { ext."signing.secretKeyRingFile" = file }
allprojects { ext."signing.password" = password }
