Attempt to fix build 4
@@ -97,10 +97,6 @@ task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
}
task signJar(type: SignJar, dependsOn: reobfJar) {
- onlyIf {
- project.hasProperty('keyStore')
- }
-
keyStore = project.property('keyStore')
alias = project.property('keyStoreAlias')
storePass = project.property('keyStorePass')
@@ -109,6 +105,10 @@ task signJar(type: SignJar, dependsOn: reobfJar) {
outputFile = jar.archivePath
}
+signJar.onlyIf {
+ project.hasProperty('keyStore')
+}
+
artifacts {
archives deobfJar
archives apiJar
