mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Move gradle signing code out of allprojects
because it caused asking for the key passphrase multiple times, i.e. for every subproject.
This commit is contained in:
parent
bd5ceded37
commit
649f7af276
1 changed files with 11 additions and 9 deletions
|
@ -34,8 +34,11 @@ allprojects {
|
||||||
'Bundle-Version': version)
|
'Bundle-Version': version)
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { taskGraph ->
|
}
|
||||||
if (signingRequired && taskGraph.allTasks.any { it instanceof Sign }) {
|
|
||||||
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
|
if (signingRequired
|
||||||
|
&& taskGraph.allTasks.any { it instanceof Sign }) {
|
||||||
// Use Java 6's console to read from the console (no good for a CI environment)
|
// Use Java 6's console to read from the console (no good for a CI environment)
|
||||||
Console console = System.console()
|
Console console = System.console()
|
||||||
console.printf '\n\nWe have to sign some things in this build.\n\nPlease enter your signing details.\n\n'
|
console.printf '\n\nWe have to sign some things in this build.\n\nPlease enter your signing details.\n\n'
|
||||||
|
@ -45,7 +48,6 @@ allprojects {
|
||||||
|
|
||||||
console.printf '\nThanks.\n\n'
|
console.printf '\nThanks.\n\n'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task javadocAll(type: Javadoc) {
|
task javadocAll(type: Javadoc) {
|
||||||
|
|
Loading…
Reference in a new issue