From 4d9cb45478865f92e9cd74cf3d77377ad63c2b5f Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 8 Apr 2021 16:22:38 +0200 Subject: [PATCH] Include the common mod resources in the subprojects. --- build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 9529b6b..6238700 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,6 +27,16 @@ subprojects { mixinConfig("snowygui-mixins.json") refmapName = "snowygui-common-refmap.json" } + this.sourceSets { + main { + resources { + val commonRes = project(":common").sourceSets.main.get().resources + if (!this.srcDirs.containsAll(commonRes.srcDirs)) { + srcDir(commonRes.srcDirs) + } + } + } + } dependencies { shadowC(kotlin("stdlib-jdk8")) "minecraft"("com.mojang:minecraft:${rootProject.property("minecraft")}")