Skip to content

Commit 10ffd10

Browse files
committed
Update build.gradle to use loom include
Closes #3
1 parent 527fc49 commit 10ffd10

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

build.gradle

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id 'fabric-loom' version '1.6-SNAPSHOT'
33
id 'maven-publish'
4-
id 'com.github.johnrengelman.shadow' version '7.0.0'
54
}
65

76
version = "${project.mod_version}+mc${project.minecraft_version}"
@@ -28,24 +27,9 @@ dependencies {
2827
minecraft "com.mojang:minecraft:${project.minecraft_version}"
2928
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
3029
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
31-
32-
// Fabric API. This is technically optional, but you probably want it anyway.
3330
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
3431

35-
shadow "net.hypixel:mod-api:${project.mod_api_version}"
36-
}
37-
38-
shadowJar {
39-
// Exclude all dependencies by default
40-
configurations = [project.configurations.shadow]
41-
42-
// Rename the shaded JAR
43-
archiveClassifier = 'shaded'
44-
}
45-
46-
remapJar {
47-
dependsOn(shadowJar)
48-
inputFile = tasks.shadowJar.archiveFile
32+
include modImplementation("net.hypixel:mod-api:${project.mod_api_version}")
4933
}
5034

5135
processResources {

0 commit comments

Comments
 (0)