@@ -11,11 +11,12 @@ base {
11
11
}
12
12
13
13
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
+ }
19
20
}
20
21
21
22
dependencies {
@@ -26,20 +27,22 @@ dependencies {
26
27
27
28
// Fabric API. This is technically optional, but you probably want it anyway.
28
29
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 } "
31
32
}
32
33
33
34
processResources {
34
35
inputs. property " version" , project. version
35
36
inputs. property " minecraft_version" , project. minecraft_version
36
37
inputs. property " loader_version" , project. loader_version
38
+ inputs. property " improperui_version" , project. improperui_version
37
39
filteringCharset " UTF-8"
38
40
39
41
filesMatching(" fabric.mod.json" ) {
40
42
expand " version" : project. version,
41
43
" minecraft_version" : project. minecraft_version,
42
- " loader_version" : project. loader_version
44
+ " loader_version" : project. loader_version,
45
+ " improperui_version" : project. improperui_version
43
46
}
44
47
}
45
48
@@ -79,12 +82,4 @@ publishing {
79
82
from components. java
80
83
}
81
84
}
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
- }
90
85
}
0 commit comments