Skip to content

Commit

Permalink
Fix version number not being replaced in fabric.mod.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretOnline committed Jan 3, 2025
1 parent b51478f commit a926067
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ The versioning scheme is listed in the README.

## Unreleased - DATE

### Fixed

- Fixed version number included in mod.

## v2.0.0 - 2024-01-03

### Added
Expand Down
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ loom {

mods {
"accessible-step" {
sourceSet sourceSets.main
// sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
Expand All @@ -58,6 +58,14 @@ processResources {
}
}

processClientResources {
inputs.property "version", project.version

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

tasks.withType(JavaCompile).configureEach {
it.options.release = project.java_version as Integer
}
Expand Down

0 comments on commit a926067

Please sign in to comment.