Attempt to fix build 3
@@ -96,7 +96,11 @@ task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
classifier 'api'
}
-task signJar(type: SignJar, dependsOn: reobfJar, onlyIf: project.hasProperty('keyStore')) {
+task signJar(type: SignJar, dependsOn: reobfJar) {
+ onlyIf {
+ project.hasProperty('keyStore')
+ }
+
keyStore = project.property('keyStore')
alias = project.property('keyStoreAlias')
storePass = project.property('keyStorePass')
@@ -105,8 +109,6 @@ task signJar(type: SignJar, dependsOn: reobfJar, onlyIf: project.hasProperty('ke
outputFile = jar.archivePath
}
-build.dependsOn signJar
-
artifacts {
archives deobfJar
archives apiJar
