import java.util.Locale pluginManagement { repositories { gradlePluginPortal() maven("https://repo.papermc.io/repository/maven-public/") } } plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" } if (!file(".git").exists()) { val errorText = """ =====================[ ERROR ]===================== The DivineMC project directory is not a properly cloned Git repository. In order to build DivineMC from source you must clone the DivineMC repository using Git, not download a code zip from GitHub. Built DivineMC jars are available for download at https://github.com/BX-Team/DivineMC/releases or at https://mcjars.app/DIVINEMC/versions See https://bxteam.org/docs/divinemc/development/contributing for further information on building and modifying DivineMC. =================================================== """.trimIndent() error(errorText) } rootProject.name = "DivineMC" for (name in listOf("divinemc-api", "divinemc-server")) { val projName = name.lowercase(Locale.ENGLISH) include(projName) findProject(":$projName")!!.projectDir = file(name) }