From 7ca87b36cda742cf004a77fd1e9df2943ef994a4 Mon Sep 17 00:00:00 2001 From: Namikon Date: Thu, 3 May 2018 23:31:00 +0200 Subject: [PATCH] SignJar --- build.gradle | 16 ++++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a303ae1e..d848dcf1 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,7 @@ repositories { } apply plugin: 'forge' +apply plugin: 'signing' // Define properties file ext.configFile = file "build.properties" @@ -98,4 +99,19 @@ artifacts { archives deobfJar archives sourceJar archives jar +} + +task signJar(dependsOn: 'reobf'){ + doLast { + ant.signjar( + destDir: jar.destinationDir, + jar: jar.getArchivePath(), + alias: findProperty('keyStoreAlias') ?: '', + keystore: findProperty('keyStore') ?: '', + storepass: findProperty('keyStorePass') ?: '', + digestalg: findProperty('signDigestAlg') ?: '', + tsaurl: findProperty('signTSAurl') ?: '', + verbose: true + ) + } } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9e9de423..771e784a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip