Add gradle wrapper
This commit is contained in:
35
build.gradle
35
build.gradle
@@ -32,26 +32,31 @@ jar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task signJar(type: SignJar, dependsOn: reobfJar) {
|
task processMetadata(dependsOn: minecraft) {
|
||||||
keyStore = project.keyStore
|
minecraft.replace '$version', modversion
|
||||||
alias = project.keyStoreAlias
|
minecraft.replace '$mcversion', mcversion
|
||||||
storePass = project.keyStorePass
|
minecraft.replace '$compatible', mccompatible
|
||||||
keyPass = project.keyStoreKeyPass
|
minecraft.replace '$url', url
|
||||||
inputFile = jar.archivePath
|
minecraft.replace '$update_url', update_url
|
||||||
outputFile = jar.archivePath
|
minecraft.replace '$certificate', certificate
|
||||||
|
}
|
||||||
|
|
||||||
|
if(project.hasProperty('keyStore')) {
|
||||||
|
task signJar(type: SignJar, dependsOn: reobfJar) {
|
||||||
|
keyStore = project.keyStore
|
||||||
|
alias = project.keyStoreAlias
|
||||||
|
storePass = project.keyStorePass
|
||||||
|
keyPass = project.keyStoreKeyPass
|
||||||
|
inputFile = jar.archivePath
|
||||||
|
outputFile = jar.archivePath
|
||||||
|
}
|
||||||
|
|
||||||
|
build.dependsOn signJar
|
||||||
}
|
}
|
||||||
build.dependsOn signJar
|
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.12.2-14.23.3.2676"
|
version = "1.12.2-14.23.3.2676"
|
||||||
runDir = "run"
|
runDir = "run"
|
||||||
|
|
||||||
replace '$version', modversion
|
|
||||||
replace '$mcversion', mcversion
|
|
||||||
replace '$compatible', mccompatible
|
|
||||||
replace '$url', url
|
|
||||||
replace '$update_url', update_url
|
|
||||||
replace '$certificate', certificate
|
|
||||||
|
|
||||||
// the mappings can be changed at any time, and must be in the following format.
|
// the mappings can be changed at any time, and must be in the following format.
|
||||||
// snapshot_YYYYMMDD snapshot are built nightly.
|
// snapshot_YYYYMMDD snapshot are built nightly.
|
||||||
|
|||||||
Reference in New Issue
Block a user