Skip to content

Commit

Permalink
- 修复 mcmod.info 占位符未被替换的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
KasumiNova committed Oct 30, 2024
1 parent 755895c commit 6112430
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ tasks.injectTags.configure {

// Put the version from gradle into mcmod.info
tasks.processResources.configure {
// inputs.property("version", project.version)
//
// filesMatching("mcmod.info") {
// expand(mapOf("version" to project.version))
// }
inputs.property("version", project.version)
inputs.property("mcversion", minecraft.mcVersion.get())

filesMatching("mcmod.info") {
expand(mapOf("version" to project.version, "mcversion" to minecraft.mcVersion.get()))
}
}

tasks.compileJava.configure {
Expand Down

0 comments on commit 6112430

Please # to comment.