fix: upload archives
gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.allTasks.any { it.name == 'uploadArchives' }) {
- Console console = System.console()
+ java.io.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
def file
def password
- if (pgpKeyId == null){
+ if (!project.hasProperty('pgpKeyId')){
id = console.readLine("PGP Key Id: ")
} else {
id = pgpKeyId
console.printf "found id in properties: " + id
}
- if (secringFilePath == null) {
+ if (!project.hasProperty('secringFilePath')) {
file = console.readLine("PGP Secret Key Ring File (absolute path): ")
} else {
file = secringFilePath
console.printf "found pathfile in properties: " + file
}
- if (pgpPassword == null) {
+ if (!project.hasProperty('pgpPassword')) {
password = console.readPassword("PGP Private Key Password: ")
} else {
password = pgpPassword
