Added jar signing (untested)

This commit is contained in:
Unknown 2018-07-01 04:04:56 +02:00
parent 62784d16fd
commit a9cb252ecd
3 changed files with 24 additions and 1 deletions

4
.gitignore vendored
View file

@ -20,3 +20,7 @@ dependencies
*.DS_Store *.DS_Store
classes classes
gradle\.properties
LemADEC\.jks
LemADEC\.jks\.old

View file

@ -169,6 +169,24 @@ jar {
destinationDir = file 'output' destinationDir = file 'output'
} }
task signJar(type: SignJar) {
onlyIf { // Skip the task if our secret data isn't available
project.hasProperty('keyStore')
}
dependsOn reobfJar
if (project.hasProperty('keyStore')) { // This needs to be a path to the keystore file
keyStore = project.keyStore
alias = project.alias
storePass = project.storePass
keyPass = project.keyPass
inputFile = jar.archivePath
outputFile = jar.archivePath
}
}
build.dependsOn signJar
idea { idea {
module { module {
inheritOutputDirs = true inheritOutputDirs = true

View file

@ -165,7 +165,8 @@ import javax.annotation.Nullable;
+ "after:appliedenergistics;" + "after:appliedenergistics;"
+ "after:enderio;" + "after:enderio;"
+ "after:defensetech;" + "after:defensetech;"
+ "after:icbmclassic;" + "after:icbmclassic;",
certificateFingerprint = "f7be6b40743c6a8205df86c5e57547d578605d8a"
) )
public class WarpDrive { public class WarpDrive {
public static final String MODID = "warpdrive"; public static final String MODID = "warpdrive";