Fix gradle issues

This commit is contained in:
Ran
2021-11-28 09:40:54 +06:00
parent e0ed760cf9
commit a297cdb79a
4 changed files with 8 additions and 7 deletions
+4
View File
@@ -18,6 +18,10 @@ subprojects {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
// The following line declares the mojmap mappings
mappings loom.officialMojangMappings()
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader unless working with fabric
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
}
}
-6
View File
@@ -1,9 +1,3 @@
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
}
loom {
accessWidenerPath.set(file("src/main/resources/lod.accesswidener"))
}
+1 -1
View File
@@ -68,7 +68,7 @@ task copyAccessWidenerAtRuntime(type: Copy) {
}
task deleteAccessWidenerAtRuntime(type: Delete) {
file("build/resources/main/lod.accesswidener")
delete file("build/resources/main/lod.accesswidener")
}
runClient {
+3
View File
@@ -43,6 +43,9 @@ dependencies {
}
shadowJar {
dependencies {
exclude(dependency("net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"))
}
exclude "fabric.mod.json"
configurations = [project.configurations.shadowMe]
relocate 'org.tukaani', 'shaded.tukaani'