Skip to content

Commit

Permalink
Pre-Release Of Version 9.0
Browse files Browse the repository at this point in the history
*Load ImproperUI from the modrinth api instead from an actual file

*Added a dependency check from the fabric.mod.json to ImproperUI (as requested in #1 and #2)
  • Loading branch information
I-No-oNe committed Jul 6, 2024
1 parent d5ce4bd commit 600af72
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ base {
}

repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
maven {
setUrl("https://api.modrinth.com/maven")
content {
includeGroup("maven.modrinth")
}
}
}

dependencies {
Expand All @@ -26,8 +27,8 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation files("libs/ImproperUI-1-20-0.0.6-BETA.jar")
// "Getting" the ImproperUi Library from the Modrinth api
modImplementation "maven.modrinth:improperui:${project.improperui_version}"
}

processResources {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ org.gradle.jvmargs=-Xmx1G
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.83.0+1.20
# ImproperUI
# check latest release on https://github.com/ItziSpyder/ImproperUI/releases
improperui_version=1-20-0.0.6-BETA
Binary file removed libs/ImproperUI-1-20-0.0.6-BETA.jar
Binary file not shown.
1 change: 1 addition & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"viewmodel.mixins.json"
],
"depends": {
"improperui": ">=${improperui_version}",
"fabricloader": ">=${loader_version}",
"fabric": "*",
"minecraft": ">=${minecraft_version}"
Expand Down

0 comments on commit 600af72

Please sign in to comment.