Files
Purpur/settings.gradle.kts
granny a58742076d Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@45d1486 build: Update paperweight to 1.5.12 and Gradle Wrapper to 8.7 (#10361)
2024-03-31 08:17:45 +00:00

40 lines
1.2 KiB
Kotlin

import java.util.Locale
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://repo.papermc.io/repository/maven-public/")
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
if (!file(".git").exists()) {
val errorText = """
=====================[ ERROR ]=====================
The Purpur project directory is not a properly cloned Git repository.
In order to build Purpur from source you must clone
the Purpur repository using Git, not download a code
zip from GitHub.
Built Purpur jars are available for download at
https://purpurmc.org/downloads
See https://github.com/PurpurMC/Purpur/blob/HEAD/CONTRIBUTING.md
for further information on building and modifying Purpur.
===================================================
""".trimIndent()
error(errorText)
}
rootProject.name = "purpur"
for (name in listOf("Purpur-API", "Purpur-Server", "paper-api-generator")) {
val projName = name.lowercase(Locale.ENGLISH)
include(projName)
findProject(":$projName")!!.projectDir = file(name)
}