Sign jars
This commit is contained in:
parent
02f17871c6
commit
7013a7021d
1 changed files with 19 additions and 0 deletions
19
build.gradle
19
build.gradle
|
@ -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'
|
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/ideconfig.gradle'
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
|
|
Loading…
Reference in a new issue