Skip to content

Commit

Permalink
Depend on MonkeyLib538
Browse files Browse the repository at this point in the history
  • Loading branch information
OffsetMonkey538 committed Feb 29, 2024
1 parent c83f296 commit 0297232
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,35 @@ configurations {

repositories {
mavenCentral()
maven {
name = "JitPack"
url = "https://jitpack.io"
content {
includeGroup "top.offsetmonkey538"
}
}
}

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

modImplementation "top.offsetmonkey538:monkeylib538:${project.monkeylib538_version}"
}

processResources {
inputs.properties(Map.of(
"modVersion", project.mod_version,
"supportedMinecraftVersions", project.supported_minecraft_versions
"supportedMinecraftVersions", project.supported_minecraft_versions,
"monkeylib538Version", project.monkeylib538_version
))

filesMatching("fabric.mod.json") {
expand(Map.of(
"modVersion", project.mod_version,
"supportedMinecraftVersions", project.supported_minecraft_versions
"supportedMinecraftVersions", project.supported_minecraft_versions,
"monkeylib538Version", project.monkeylib538_version
))
}

Expand Down Expand Up @@ -117,6 +128,7 @@ modrinth {
}

dependencies {
required.project "monkeylib538"
}
}

Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ yarn_version = 1.20.4+build.3
loader_version = 0.15.7

# Dependencies
monkeylib538_version = 1.0.2

# Mod Properties
mod_version = 1.0.0
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
],
"accessWidener": "configurable-item-cooldown.accesswidener",
"depends": {
"minecraft": "${supportedMinecraftVersions}"
"minecraft": "${supportedMinecraftVersions}",
"monkeylib538": ">=${monkeylib538Version}"
}
}

0 comments on commit 0297232

Please sign in to comment.