aboutsummaryrefslogtreecommitdiff
path: root/test-common
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-05-16 17:04:51 +0100
committerisXander <xandersmith2008@gmail.com>2023-05-16 17:04:51 +0100
commit4f1bba3f51de1f544b239e7eac740eab5832dc5b (patch)
tree72357adf401c2f0c2962eba59d2a793ba238a182 /test-common
parent5b368af9efcc1c587c608d014e9dc79bcc3c691c (diff)
downloadYetAnotherConfigLib-4f1bba3f51de1f544b239e7eac740eab5832dc5b.tar.gz
YetAnotherConfigLib-4f1bba3f51de1f544b239e7eac740eab5832dc5b.tar.bz2
YetAnotherConfigLib-4f1bba3f51de1f544b239e7eac740eab5832dc5b.zip
1.20
Diffstat (limited to 'test-common')
-rw-r--r--test-common/build.gradle.kts7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-common/build.gradle.kts b/test-common/build.gradle.kts
index 7e14666..6bdfb0a 100644
--- a/test-common/build.gradle.kts
+++ b/test-common/build.gradle.kts
@@ -3,7 +3,8 @@ plugins {
}
architectury {
- common("fabric", "forge")
+ val enabledLoaders = rootProject.properties["loaders"].toString().split(",").map { it.trim() }
+ common(enabledLoaders)
}
loom {
@@ -15,7 +16,9 @@ loom {
dependencies {
minecraft(libs.minecraft)
mappings(loom.layered {
- mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2")
+ val qm = libs.versions.quilt.mappings.get()
+ if (qm != "0")
+ mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2")
officialMojangMappings()
})
modImplementation(libs.fabric.loader)