From c59693dff859845e43dde361a61ef98a84f7490f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 8 Jan 2025 14:38:48 +0100 Subject: fix: Classes and resources being entangled --- build.gradle.kts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 2fbbd99..a6ee08c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -59,6 +59,7 @@ loom { log4jConfigs.from(file("log4j2.xml")) launchConfigs { "client" { + property("ledger.bonusresourcemod", sourceSets.main.get().output.resourcesDir!!.absolutePath) property("mixin.debug", "true") arg("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker") arg("--tweakClass", "io.github.notenoughupdates.moulconfig.tweaker.DevelopmentResourceTweaker") @@ -82,16 +83,6 @@ loom { } } -tasks.compileJava { - dependsOn(tasks.processResources) -} - -sourceSets.main { - output.setResourcesDir(sourceSets.main.flatMap { it.java.classesDirectory }) - java.srcDir(layout.projectDirectory.dir("src/main/kotlin")) - kotlin.destinationDirectory.set(java.destinationDirectory) -} - allprojects { repositories { mavenCentral() @@ -229,7 +220,6 @@ val remapJar by tasks.named("remapJar") { tasks.jar { archiveClassifier.set("without-deps") - dependsOn(tasks.processResources) // Why is this needed? destinationDirectory.set(layout.buildDirectory.dir("badjars")) } -- cgit