Skip to content

Commit 0460f16

Browse files
committed
Pre-Release Of Version 9.0
*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)
1 parent 42619df commit 0460f16

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

build.gradle

+11-16
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ base {
1111
}
1212

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

2122
dependencies {
@@ -26,20 +27,22 @@ dependencies {
2627

2728
// Fabric API. This is technically optional, but you probably want it anyway.
2829
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29-
30-
modImplementation files("libs/ImproperUI-1-20.6-0.0.6-BETA.jar")
30+
// "Getting" the ImproperUi Library from the Modrinth api
31+
modImplementation "maven.modrinth:improperui:${project.improperui_version}"
3132
}
3233

3334
processResources {
3435
inputs.property "version", project.version
3536
inputs.property "minecraft_version", project.minecraft_version
3637
inputs.property "loader_version", project.loader_version
38+
inputs.property "improperui_version", project.improperui_version
3739
filteringCharset "UTF-8"
3840

3941
filesMatching("fabric.mod.json") {
4042
expand "version": project.version,
4143
"minecraft_version": project.minecraft_version,
42-
"loader_version": project.loader_version
44+
"loader_version": project.loader_version,
45+
"improperui_version": project.improperui_version
4346
}
4447
}
4548

@@ -79,12 +82,4 @@ publishing {
7982
from components.java
8083
}
8184
}
82-
83-
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
84-
repositories {
85-
// Add repositories to publish to here.
86-
// Notice: This block does NOT have the same function as the block in the top level.
87-
// The repositories here will be used for publishing your artifact, not for
88-
// retrieving dependencies.
89-
}
9085
}

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ org.gradle.jvmargs=-Xmx1G
1515
# Dependencies
1616
# check this on https://modmuss50.me/fabric.html
1717
fabric_version=0.98.0+1.20.6
18+
# ImproperUI
19+
# check latest release on https://github.com/ItziSpyder/ImproperUI/releases
20+
improperui_version=1-20.6-0.0.6-BETA

libs/ImproperUI-1-20.6-0.0.6-BETA.jar

-200 KB
Binary file not shown.

src/main/resources/fabric.mod.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"viewmodel.mixins.json"
2727
],
2828
"depends": {
29+
"improperui": ">=${improperui_version}",
2930
"fabricloader": ">=${loader_version}",
3031
"fabric": "*",
3132
"minecraft": ">=${minecraft_version}"

0 commit comments

Comments
 (0)