aboutsummaryrefslogtreecommitdiff
path: root/settings.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'settings.gradle.kts')
-rw-r--r--settings.gradle.kts16
1 files changed, 12 insertions, 4 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 51b9105..bdda698 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -17,9 +17,17 @@ dependencyResolutionManagement {
rootProject.name = "YetAnotherConfigLib"
+val enabledLoaders = settings.extra.properties["loaders"].toString().split(",").map { it.trim() }
+
include("common")
-include("fabric")
-include("forge")
include("test-common")
-include("test-fabric")
-include("test-forge")
+
+if ("fabric" in enabledLoaders) {
+ include("fabric")
+ include("test-fabric")
+}
+
+if ("forge" in enabledLoaders) {
+ include("forge")
+ include("test-forge")
+}