Depend on the reborn core version it was built against.
This commit is contained in:
parent
1fcf18707b
commit
30dcd5dfa8
1 changed files with 14 additions and 0 deletions
14
build.gradle
14
build.gradle
|
@ -137,6 +137,20 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
doLast {
|
||||||
|
// Depend on the reborn core version it was built against
|
||||||
|
fileTree(dir: outputs.files.asPath, include: "fabric.mod.json").each {
|
||||||
|
def jsonSlurper = new JsonSlurper()
|
||||||
|
def modJson = jsonSlurper.parseText(it.text)
|
||||||
|
|
||||||
|
modJson.depends.reborncore = "~${project.version}"
|
||||||
|
|
||||||
|
it.text = JsonOutput.toJson(modJson)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
accessWidenerPath = file("src/main/resources/techreborn.accesswidener")
|
accessWidenerPath = file("src/main/resources/techreborn.accesswidener")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue