Skip to content

Commit

Permalink
Janky fix for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Nov 25, 2024
1 parent c80256e commit 11ad437
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions buildSrc/src/main/kotlin/multiloader.loader.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@ dependencies {
}

tasks {
// Janky task to just copy over the resources folder
val copyResourcesFromCommon by tasks.registering(Copy::class) {
from(project(":common").file("src/main/resources"))
into("src/main/resources")
include("**/*")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

named<JavaCompile>("compileJava").configure {
dependsOn(configurations.getByName("commonJava"))
source(configurations.getByName("commonJava"))
}
named<ProcessResources>("processResources").configure {
dependsOn(copyResourcesFromCommon)
dependsOn(configurations.getByName("commonResources"))
from(configurations.getByName("commonResources"))
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
named<Jar>("sourcesJar").configure {
dependsOn(configurations.getByName("commonJava"))
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ tasks {
exclude("**/modmenu/**.java")
}
}
}
}
5 changes: 5 additions & 0 deletions fabric/src/main/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.cfg
*.accesswidener
assets
data
noxesium-common.mixins.json
5 changes: 5 additions & 0 deletions neoforge/src/main/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.cfg
*.accesswidener
assets
data
noxesium-common.mixins.json

0 comments on commit 11ad437

Please sign in to comment.