Skip to content

Commit

Permalink
Fix ${version} in fabric.mod.json not being processed in output jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Draylar committed Aug 23, 2023
1 parent 7f7a58d commit be66d62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ dependencies {
// modImplementation "com.jamieswhiteshirt:reach-entity-attributes:${project.rea_version}"
}

processResources {
inputs.property "version", project.version
inputs.property "minecraft_version", project.minecraft_version
inputs.property "loader_version", project.loader_version
filteringCharset "UTF-8"

filesMatching("fabric.mod.json") {
expand "version": project.version,
"minecraft_version": project.minecraft_version,
"loader_version": project.loader_version
}
}

sourceSets {
testmod {
compileClasspath += main.compileClasspath
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.14.22

# Mod Properties
mod_version=1.10.0
mod_version=1.10.1
maven_group=dev.draylar
archives_base_name=magna

Expand Down

0 comments on commit be66d62

Please sign in to comment.