fix: configure processResources late to avoid using uninitialized state
ci/woodpecker/push/gradle Pipeline was successful Details
ci/woodpecker/push/pages Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2024-04-10 16:36:00 +02:00
parent f24e6fdd74
commit 5a6154f13e
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 12 additions and 10 deletions

View File

@ -169,7 +169,8 @@ tasks.remapJar {
}
// fill in mod version
tasks.processResources {
afterEvaluate {
tasks.processResources {
val map = mapOf(
"version" to project.versionS,
"minecraft_version" to args.minecraftVersion.get(),
@ -180,6 +181,7 @@ tasks.processResources {
expand(map)
}
inputs.property("version", project.versionS)
}
}
// publish sources jar and remapped jar without JiJ'd deps