gradle commenting and minor refactoring
This commit is contained in:
+5
-5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user