Attempt to fix build 5
@@ -97,6 +97,7 @@ task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
}
task signJar(type: SignJar, dependsOn: reobfJar) {
+ doLast {
keyStore = project.property('keyStore')
alias = project.property('keyStoreAlias')
storePass = project.property('keyStorePass')
@@ -104,6 +105,7 @@ task signJar(type: SignJar, dependsOn: reobfJar) {
inputFile = jar.archivePath
outputFile = jar.archivePath
}
+}
signJar.onlyIf {
project.hasProperty('keyStore')
