Fix TeamCity blowing up
@@ -35,7 +35,9 @@ allprojects {
}
}
+if (!project.hasProperty("nosign")) {
apply plugin: 'signing'
+}
description = 'The Ultimate Essentials Plugin.'
ext.url = 'http://nucleuspowered.org'
@@ -171,6 +173,7 @@ artifacts {
archives shadowJar
}
+if (!project.hasProperty("nosign")) {
signing {
required {
project.properties.hasProperty("signing.keyId")
@@ -189,6 +192,10 @@ task buildAndSign {
dependsOn 'copyAsc'
}
+ signArchives.dependsOn(shadowJar)
+ copyAsc.dependsOn(signArchives)
+}
+
static String getGitHash() {
def process = 'git rev-parse --short HEAD'.execute()
process.waitFor()
@@ -200,5 +207,3 @@ clean.dependsOn(cleanJars)
copyJars.mustRunAfter(cleanJars)
build.dependsOn(shadowJar)
build.dependsOn(copyJars)
\ No newline at end of file
-signArchives.dependsOn(shadowJar)
-copyAsc.dependsOn(signArchives)
