Update build.gradle

This commit is contained in:
mDiyo committed 2014-08-01 20:44:41 -08:00
1 parent f3372c1a47
commit 7e363e64a2
1 file changed
+1 -28
+1 -28
View File
@@ -178,36 +178,9 @@ if (!project.hasProperty("keystore_user_password")) // keystore user pass
ext.keystore_user_password = "";
if (System.getenv().KSK_PW != null)
ext.keystore_user_password =System.getenv().KSK_PW;
task("signJar", dependsOn: "build")
{
inputs.file jar.getArchivePath()
inputs.file keystore_location
inputs.property "keystore_user_alias", keystore_user_alias
inputs.property "keystore_user_password", keystore_user_password
outputs.file jar.getArchivePath()
// only sign if the keystore exists
onlyIf {
return keystore_location != "."
}
println "archive path >> "+jar.getArchivePath()
println jar.getArchivePath()
// the actual action.. sign the jar.
doLast {
ant.signjar(
destDir: jar.destinationDir,
jar: jar.getArchivePath(),
keystore: keystore_location,
alias: keystore_user_alias,
storepass: keystore_user_password,
keypass: keystore_user_password
)
}
}
task("uploadJars", dependsOn:"signJar") {
task("uploadJars", dependsOn:"build") {
description = "uploads JARs"