Include the common mod resources in the subprojects.

This commit is contained in:
Username404-59 2021-04-08 16:22:38 +02:00
parent 17b07458f8
commit 4d9cb45478
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 10 additions and 0 deletions

View File

@ -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")}")