mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-26 10:29:13 +00:00
1. Wet the drys 2. Dry the wets 3. Wet the drys 4. Dry the wets 5. Wet the drys 6. Now dust the wets
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
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.9.0"
|
|
}
|
|
|
|
if (!file(".git").exists()) {
|
|
// Leaf start - project setup
|
|
val errorText = """
|
|
|
|
=====================[ ERROR ]=====================
|
|
The Leaf project directory is not a properly cloned Git repository.
|
|
|
|
In order to build Leaf from source you must clone
|
|
the Leaf repository using Git, not download a code
|
|
zip from GitHub.
|
|
|
|
Built Leaf jars are available for download at
|
|
https://www.leafmc.one/download
|
|
|
|
See https://github.com/PaperMC/Paper/blob/main/CONTRIBUTING.md
|
|
for further information on building and modifying Paper forks.
|
|
===================================================
|
|
""".trimIndent()
|
|
// Leaf end - project setup
|
|
error(errorText)
|
|
}
|
|
|
|
rootProject.name = "leaf"
|
|
|
|
for (name in listOf("leaf-api", "leaf-server")) {
|
|
val projName = name.lowercase(Locale.ENGLISH)
|
|
include(projName)
|
|
}
|