diff --git a/forge/build.gradle b/forge/build.gradle index f3b1af41d..3c79ac947 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -51,6 +51,16 @@ afterEvaluate { runClient { dependsOn(tasks.named('copyAllResources')) } + + // TODO this isn't a great place for these, but `tasks.build.doLast` doesn't always work and I'm not sure of a better place right now + tasks.runClient.doFirst { + // TODO can we just ignore these folders instead? + // deleting them may cause issues if the OS locks the files + // and it feels hacky + delete file("../common/build/libs") + delete file("../coreSubProjects/core/build/libs") + delete file("../coreSubProjects/api/build/libs") + } } remapJar {