Depend on the reborn core version it was built against.

This commit is contained in:
modmuss50 2022-02-03 11:35:39 +00:00
parent 1fcf18707b
commit 30dcd5dfa8

View file

@ -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 {
accessWidenerPath = file("src/main/resources/techreborn.accesswidener")
}