mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@848a396 Add mob goal generator (#9980) PaperMC/Paper@ebf97bd [ci skip] Add more patch identifying comments PaperMC/Paper@94807a1 [ci skip] Minor cleanup and patch merges
40 lines
1.2 KiB
Kotlin
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.7.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)
|
|
}
|