Include the common mod resources in the subprojects.
This commit is contained in:
parent
17b07458f8
commit
4d9cb45478
|
@ -27,6 +27,16 @@ subprojects {
|
||||||
mixinConfig("snowygui-mixins.json")
|
mixinConfig("snowygui-mixins.json")
|
||||||
refmapName = "snowygui-common-refmap.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 {
|
dependencies {
|
||||||
shadowC(kotlin("stdlib-jdk8"))
|
shadowC(kotlin("stdlib-jdk8"))
|
||||||
"minecraft"("com.mojang:minecraft:${rootProject.property("minecraft")}")
|
"minecraft"("com.mojang:minecraft:${rootProject.property("minecraft")}")
|
||||||
|
|
Loading…
Reference in New Issue