9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

Init 1.21.5 setup

This commit is contained in:
Dreeam
2025-03-26 11:19:18 -04:00
parent 1e36d848c2
commit 2fe143b468
10 changed files with 75 additions and 81 deletions

View File

@@ -11,6 +11,28 @@ plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}
if (!file(".git").exists()) {
// Gale start - build changes
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()
// Gale end - build changes
error(errorText)
}
rootProject.name = "leaf"
for (name in listOf("leaf-api", "leaf-server")) {