File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,21 +11,17 @@ base {
1111}
1212
1313repositories {
14- // Local Maven repository
1514 mavenLocal()
1615
17- // Fabric
16+ mavenCentral()
17+
1818 maven {
1919 url = " https://maven.fabricmc.net/"
2020 }
2121
22- // Modrinth
2322 maven {
2423 url = " https://api.modrinth.com/maven"
2524 }
26-
27- // Maven Central
28- mavenCentral()
2925}
3026
3127dependencies {
@@ -43,13 +39,18 @@ dependencies {
4339
4440 // Mod Menu (optional)
4541 modCompileOnly " maven.modrinth:modmenu:11.0.3"
42+
43+ // guiAPI dependency
44+ modImplementation " dev.toolkitmc:guiapi:1.0.2"
4645}
4746
4847processResources {
4948 inputs. property " version" , project. version
5049
5150 filesMatching(" fabric.mod.json" ) {
52- expand " version" : project. version
51+ expand(
52+ " version" : project. version
53+ )
5354 }
5455}
5556
@@ -73,11 +74,25 @@ jar {
7374publishing {
7475 publications {
7576 mavenJava(MavenPublication ) {
76- from components. java
7777
7878 groupId = project. maven_group
7979 artifactId = project. archives_base_name
8080 version = project. mod_version
81+
82+ from components. java
83+
84+ artifact(remapJar) {
85+ builtBy remapJar
86+ }
87+
88+ artifact(sourcesJar) {
89+ builtBy sourcesJar
90+ }
91+
92+ pom {
93+ name = project. archives_base_name
94+ description = " guiAPI Fabric library"
95+ }
8196 }
8297 }
8398
You can’t perform that action at this time.
0 commit comments