From 7e4985e15e23aa5142ec8720bad169d5f5d71b36 Mon Sep 17 00:00:00 2001 From: Cadiboo <37298044+Cadiboo@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:39:07 +1100 Subject: [PATCH] Remove local library (via ./libs) support --- build.gradle | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/build.gradle b/build.gradle index 8b49edfe..27ba7a4a 100644 --- a/build.gradle +++ b/build.gradle @@ -103,24 +103,11 @@ repositories { } } dependencies { - // If OptiFine (deobfuscated with Cadiboo's OptiFine deobf tool) is in libs, we want to be able to look at its classes - // We use 'testCompileOnly' and not 'implementation', we don't want it to actually load at runtime because the non-deobf - // version of OptiFine and OptiFineDevTweaker are loaded from the mods folder at runtime - // OptiFine is the first dependency because so that we can compile against its version of vanilla's classes, not Forge's - testCompileOnly fileTree(include: ['OptiFine_*_MOD-deobf.jar'], dir: 'libs') - minecraft "net.minecraftforge:forge:${modMinecraftVersion}-${modForgeVersion}" // Apply Mixin AP annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' - // Add a compile/implementation dependency on (and deobfuscate) all .jar files in ./libs - fileTree(include: ['*.jar'], exclude: ['OptiFine_*_MOD-deobf.jar'], dir: 'libs').each { file -> - def fileNameWithoutDotJarExtension = file.name.substring(0, file.name.length() - 4) - def indexOfLastDash = fileNameWithoutDotJarExtension.lastIndexOf('-'); - implementation fg.deobf("local:${fileNameWithoutDotJarExtension.substring(0, indexOfLastDash)}:${fileNameWithoutDotJarExtension.substring(indexOfLastDash + 1)}") - } - // For the config color picker (we include it in our production jar with ShadowJar) library 'org.beryx:awt-color-factory:1.0.2'