gradle commenting and minor refactoring

This commit is contained in:
James Seibel
2024-02-04 15:52:27 -06:00
parent a38551b3d0
commit 794f524ae3
2 changed files with 49 additions and 60 deletions
+5 -5
View File
@@ -44,12 +44,13 @@ pluginManagement {
}
plugins {
// handles JVM and toolchain downloading
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}
// Loads the version.properties
/** Loads the VersionProperties fiel for the currently selected Minecraft version. */
def loadProperties() {
def defaultMcVersion = "1.20.1" // 1.20.1 is our current most stable version so we use that if no version was defined
@@ -86,7 +87,6 @@ def loadProperties() {
gradle.ext.mcVers = mcVers
gradle.ext.mcIndex = mcIndex
}
loadProperties()
@@ -102,9 +102,9 @@ project(":api").projectDir = file('coreSubProjects/api')
include("common")
// Enables or disables the subprojects depending on whats in the versionProperties/mcVer.properties
for (loader in ((String) gradle.builds_for).split(",")) {
def l = loader.strip() // Strip it in case a space is added before or after the comma
println "Adding loader " + l
include(l)
def loaderName = loader.strip() // Strip it in case a space is added before or after the comma
println "Adding loader " + loaderName
include(loaderName)
}
//if (gradle.builds_for.contains("fabric") || gradle.builds_for.contains("quilt"))
// include("fabricLike")