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 1b66a7b commit 413f9b0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
23 changes: 8 additions & 15 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.2-0.0.6-BETA.jar")
// "Getting" the ImproperUi Library from the Modrinth api
modImplementation "maven.modrinth:improperui:${project.improperui_version}"
}

processResources {
Expand Down Expand Up @@ -79,12 +80,4 @@ publishing {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
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.91.6+1.20.2
# ImproperUI
# check latest release on https://github.com/ItziSpyder/ImproperUI/releases
improperui_version=1-20.2-0.0.6-BETA
Binary file removed libs/ImproperUI-1-20.2-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 413f9b0

Please sign in to comment.