diff --git a/build.gradle b/build.gradle index 0be477a8d..591ed359e 100644 --- a/build.gradle +++ b/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' import org.apache.commons.io.FileUtils;