feat: expose additional properties in processResources
This commit is contained in:
parent
6d84d11aab
commit
fd6eebd2c6
|
@ -171,8 +171,14 @@ tasks.remapJar {
|
||||||
|
|
||||||
// fill in mod version
|
// fill in mod version
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
|
val map = mapOf(
|
||||||
|
"version" to project.versionS,
|
||||||
|
"minecraft_version" to args.minecraftVersion.get(),
|
||||||
|
"loader_version" to args.loaderVersion.get(),
|
||||||
|
"${args.loaderKind.get().name.lowercase()}_version" to args.loaderVersion.get(),
|
||||||
|
)
|
||||||
filesMatching(listOf("fabric.mod.json", "META-INF/mods.toml")) {
|
filesMatching(listOf("fabric.mod.json", "META-INF/mods.toml")) {
|
||||||
expand(mapOf("version" to project.versionS))
|
expand(map)
|
||||||
}
|
}
|
||||||
inputs.property("version", project.versionS)
|
inputs.property("version", project.versionS)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue