From e954cc03042ecbbf12f3ce4dd3306ff3196fcb4b Mon Sep 17 00:00:00 2001
From: SHsuperCM <shsupercm@gmail.com>
Date: Wed, 20 Oct 2021 20:16:16 +0300
Subject: Organized dependencies, fapi's resource loader and command api are
 now included

---
 build.gradle                  |  11 +++++++----
 gradle.properties             |   7 +++++++
 libs/cosmetic-armor-1.1.0.jar | Bin 19943 -> 0 bytes
 3 files changed, 14 insertions(+), 4 deletions(-)
 delete mode 100644 libs/cosmetic-armor-1.1.0.jar

diff --git a/build.gradle b/build.gradle
index df9124f..6c5f3ca 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,6 +9,7 @@ group = project.maven_group
 repositories {
     maven { url "https://maven.shedaniel.me/" }
     maven { url "https://maven.terraformersmc.com/releases" }
+    maven { url "https://cursemaven.com" }
 }
 
 dependencies {
@@ -17,17 +18,19 @@ dependencies {
     mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
     modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
 
-    modCompileOnly fabricApi.module("fabric-resource-loader-v0", "0.39.2+1.17")
+    modImplementation include(fabricApi.module("fabric-api-base", "${project.fabric_api}"))
+    modImplementation include(fabricApi.module("fabric-resource-loader-v0", "${project.fabric_api}"))
+    modImplementation include(fabricApi.module("fabric-command-api-v1", "${project.fabric_api}"))
 
-    modCompileOnly("com.terraformersmc:modmenu:2.0.6") {
+    modCompileOnly("com.terraformersmc:modmenu:${project.modmenu}") {
         exclude(group: "net.fabricmc.fabric-api")
     }
 
-    modCompileOnly("me.shedaniel.cloth:cloth-config-fabric:5.0.38") {
+    modCompileOnly("me.shedaniel.cloth:cloth-config-fabric:${project.cloth}") {
         exclude(group: "net.fabricmc.fabric-api")
     }
 
-    modCompileOnly(files("libs/cosmetic-armor-1.1.0.jar"))
+    modCompileOnly("curse.maven:cosmeticarmor-436659:${project.cosmetic_armor}")
 }
 
 processResources {
diff --git a/gradle.properties b/gradle.properties
index cab2892..000a135 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,10 +1,17 @@
 # Done to increase the memory available to gradle.
 org.gradle.jvmargs=-Xmx1G
+
 # Fabric Properties
 # check these on https://modmuss50.me/fabric.html
 minecraft_version=1.17.1
 yarn_mappings=1.17.1+build.39
 loader_version=0.11.6
+
+fabric_api=0.39.2+1.17
+modmenu=2.0.6
+cloth=5.0.38
+cosmetic_armor=3419941
+
 # Mod Properties
 mod_version=0.8.0
 maven_group=shcm.shsupercm.fabric
diff --git a/libs/cosmetic-armor-1.1.0.jar b/libs/cosmetic-armor-1.1.0.jar
deleted file mode 100644
index cdc2834..0000000
Binary files a/libs/cosmetic-armor-1.1.0.jar and /dev/null differ
-- 
cgit