Skip to content

Commit

Permalink
Setup zeta dependency and strict versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Feb 3, 2024
1 parent e5020a7 commit 6272ced
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ processResources {
exclude '**/psd/**'
duplicatesStrategy 'include'
}

Map<String, ?> properties = Map.of(
"zeta_ver", deps.zeta.substring(0, deps.zeta.lastIndexOf('.'))
)

properties.forEach((k, v) -> inputs.property(k, v))

filesMatching("META-INF/mods.toml") {
expand properties
}
}

def parseConfig(File config) {
Expand Down
1 change: 0 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<This is for the future release!!! remove this line before publishing>
- Fix configs needing a restart to apply
7 changes: 7 additions & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ description='''Small things, improving Minecraft bit by bit.'''
ordering="AFTER"
side="BOTH"

[[dependencies.quark]]
modId="zeta"
mandatory=false
versionRange="[${zeta_ver},2.0)"
ordering="AFTER"
side="BOTH"

[[dependencies.quark]]
modId="lootr"
mandatory=false
Expand Down

0 comments on commit 6272ced

Please sign in to comment.