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 cbc4f53 commit f612f13
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
27 changes: 11 additions & 16 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,11 +27,12 @@ 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.21-0.0.6-BETA.jar")
// "Getting" the ImproperUi Library from the Modrinth api
modImplementation "maven.modrinth:improperui:${project.improperui_version}"
}

processResources {
inputs.property "improperui_version", project.improperui_version
inputs.property "version", project.version
inputs.property "minecraft_version", project.minecraft_version
inputs.property "loader_version", project.loader_version
Expand All @@ -39,7 +41,8 @@ processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version,
"minecraft_version": project.minecraft_version,
"loader_version": project.loader_version
"loader_version": project.loader_version,
"improperui_version": project.improperui_version
}
}

Expand Down Expand Up @@ -79,12 +82,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.100.4+1.21
# ImproperUI
# check latest release on https://github.com/ItziSpyder/ImproperUI/releases
improperui_version=1.21-0.0.6-BETA
Binary file removed libs/ImproperUI-1.21-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 f612f13

Please sign in to comment.