aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-08 14:38:48 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-08 14:38:48 +0100
commitc59693dff859845e43dde361a61ef98a84f7490f (patch)
tree95e525908344cc10c6a5f5a1673c191510e1aef0 /build.gradle.kts
parent16bba767b55eca4531e89f3ac70fdf0f16573913 (diff)
downloadLocalTransactionLedger-c59693dff859845e43dde361a61ef98a84f7490f.tar.gz
LocalTransactionLedger-c59693dff859845e43dde361a61ef98a84f7490f.tar.bz2
LocalTransactionLedger-c59693dff859845e43dde361a61ef98a84f7490f.zip
fix: Classes and resources being entangled
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts12
1 files changed, 1 insertions, 11 deletions
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<net.fabricmc.loom.task.RemapJarTask>("remapJar") {
tasks.jar {
archiveClassifier.set("without-deps")
- dependsOn(tasks.processResources) // Why is this needed?
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
}