mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-27 23:33:11 +00:00
SignJar
This commit is contained in:
1 parent
5869418115
commit
d229201b90
2 files changed
+17
-1
No files matched your search
@@ -9,6 +9,7 @@ buildscript {
|
||||
}
|
||||
|
||||
apply plugin: 'forge'
|
||||
apply plugin: 'signing'
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
@@ -68,4 +69,19 @@ tasks.build.dependsOn sourceJar, deobfJar
|
||||
|
||||
tasks.withType(JavaCompile) { task ->
|
||||
task.options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
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
|
||||
)
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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.13-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
Reference in new issue
Block a user