Sign jars

This commit is contained in:
modmuss50 2017-04-13 10:11:10 +01:00
parent 02f17871c6
commit 7013a7021d
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -289,6 +289,25 @@ task updateMappings(dependsOn: sourceJar) {
}
}
task signJar(type: SignJar, dependsOn: reobfJar) {
onlyIf {
project.hasProperty('keyStore')
}
if (project.hasProperty('keyStore')) {
keyStore = project.keyStore
alias = project.keyStoreAlias
storePass = project.keyStorePass
keyPass = project.keyStoreKeyPass
inputFile = jar.archivePath
outputFile = jar.archivePath
}
}
build.dependsOn signJar
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/ideconfig.gradle'
import org.apache.commons.io.FileUtils;