Skip to content

Commit

Permalink
build: Don't reference Project at execution time
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 12, 2025
1 parent ca54e6c commit 449759d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cloud-fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ dependencies {
}

tasks {
withType<ProcessResources>().configureEach() {
inputs.property("version", project.version)
withType<ProcessResources>().configureEach {
val props = mapOf("version" to project.version)
inputs.properties(props)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
expand(props)
}
}

Expand Down

0 comments on commit 449759d

Please sign in to comment.