Add gradle wrapper
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -32,6 +32,16 @@ jar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task processMetadata(dependsOn: minecraft) {
|
||||||
|
minecraft.replace '$version', modversion
|
||||||
|
minecraft.replace '$mcversion', mcversion
|
||||||
|
minecraft.replace '$compatible', mccompatible
|
||||||
|
minecraft.replace '$url', url
|
||||||
|
minecraft.replace '$update_url', update_url
|
||||||
|
minecraft.replace '$certificate', certificate
|
||||||
|
}
|
||||||
|
|
||||||
|
if(project.hasProperty('keyStore')) {
|
||||||
task signJar(type: SignJar, dependsOn: reobfJar) {
|
task signJar(type: SignJar, dependsOn: reobfJar) {
|
||||||
keyStore = project.keyStore
|
keyStore = project.keyStore
|
||||||
alias = project.keyStoreAlias
|
alias = project.keyStoreAlias
|
||||||
@@ -40,19 +50,14 @@ task signJar(type: SignJar, dependsOn: reobfJar) {
|
|||||||
inputFile = jar.archivePath
|
inputFile = jar.archivePath
|
||||||
outputFile = 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.
|
||||||
// stable_# stables are built at the discretion of the MCP team.
|
// stable_# stables are built at the discretion of the MCP team.
|
||||||
|
|||||||
Reference in New Issue
Block a user