Added jar signing (untested)
This commit is contained in:
parent
62784d16fd
commit
a9cb252ecd
3 changed files with 24 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -20,3 +20,7 @@ dependencies
|
||||||
|
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
classes
|
classes
|
||||||
|
|
||||||
|
gradle\.properties
|
||||||
|
LemADEC\.jks
|
||||||
|
LemADEC\.jks\.old
|
||||||
|
|
18
build.gradle
18
build.gradle
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue