Updated gradle script to be easier to add loaders

This commit is contained in:
coolGi
2023-06-15 17:41:18 +09:30
parent 2b1b54a646
commit 1b84d8bf0b
9 changed files with 14 additions and 17 deletions
+4 -7
View File
@@ -78,15 +78,12 @@ project(":api").projectDir = file('coreSubProjects/api')
// Minecraft dependent sub-projects
include("common")
// Enables or disables the subprojects depending on whats in the version.properties
if (gradle.builds_for.contains("forge"))
include("forge")
// Enables or disables the subprojects depending on whats in the versionProperties/mcVer.properties
for (loader in ((String) gradle.builds_for).split(",")) {
include(loader)
}
//if (gradle.builds_for.contains("fabric") || gradle.builds_for.contains("quilt"))
// include("fabricLike")
if (gradle.builds_for.contains("fabric"))
include("fabric")
if (gradle.builds_for.contains("quilt"))
include("quilt") // Just put this here for once we need it ;)
rootProject.name = "DistantHorizons"