Skip to content

Commit c773bb7

Browse files
committed
Automatically replace mod version in ignite.mod.json
1 parent f9bb3c3 commit c773bb7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

paper/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ tasks {
2929
dependsOn(applyAccessWideners)
3030
}
3131

32+
processResources {
33+
filesMatching("ignite.mod.json") {
34+
expand("version" to project.version)
35+
}
36+
}
37+
3238
withType<Jar> {
3339
archiveBaseName = "${rootProject.name}-${project.name}-$minecraftVersion"
3440
archiveClassifier = null

paper/src/main/resources/ignite.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "slime-worlds",
3-
"version": "1.0.0",
3+
"version": "${version}",
44
"mixins": [
55
"slime-worlds.mixins.json"
66
],

0 commit comments

Comments
 (0)