diff --git a/build.gradle.kts b/build.gradle.kts index cc72606..ced1cdf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,6 +26,7 @@ subprojects { repositories { mavenCentral() maven { url = uri("http://repo.choco.wtf/releases"); isAllowInsecureProtocol = true } + maven { url = uri("http://repo.choco.wtf/snapshots"); isAllowInsecureProtocol = true } } dependencies { diff --git a/veinminer-fabric/build.gradle.kts b/veinminer-fabric/build.gradle.kts index d8096c2..f0f5f2d 100644 --- a/veinminer-fabric/build.gradle.kts +++ b/veinminer-fabric/build.gradle.kts @@ -1,20 +1,18 @@ plugins { alias(libs.plugins.fabric.loom) + alias(libs.plugins.shadow) } dependencies { - implementation(project(":veinminer-common")) + api(project(":veinminer-common")) + shadow(project(":veinminer-common")) + modApi(libs.choco.networking.fabric) minecraft(libs.minecraft.get()) mappings(loom.officialMojangMappings()) modImplementation(libs.fabric.loader) modImplementation(libs.fabric.api) - modImplementation(libs.choco.networking.fabric) - - include(project(":veinminer-common")) - include(libs.choco.networking.common) - include(libs.choco.networking.fabric) } loom { @@ -34,4 +32,21 @@ tasks { rename { "${it}_${project.name}" } } } + + shadowJar { + configurations = listOf(project.configurations["shadow"], project.configurations["modApi"]) + exclude("META-INF") + + dependencies { + include(project(":veinminer-common")) + include(dependency(libs.choco.networking.common.get())) + include(dependency(libs.choco.networking.fabric.get())) + } + } + + remapJar { + dependsOn("shadowJar") + mustRunAfter("shadowJar") + inputFile.set(shadowJar.get().archiveFile) + } } diff --git a/veinminer-fabric/gradle.properties b/veinminer-fabric/gradle.properties deleted file mode 100644 index 7369d16..0000000 --- a/veinminer-fabric/gradle.properties +++ /dev/null @@ -1,5 +0,0 @@ -minecraft_version=1.20.1 -loader_version=0.14.21 - -#Fabric api -fabric_version=0.84.0+1.20.1