mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
[ci skip] Add check for git repo (#8578)
This commit is contained in:
parent
b121c04895
commit
b46e2030d6
1 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,25 @@
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
|
if (!file(".git").isDirectory) {
|
||||||
|
val errorText = """
|
||||||
|
|
||||||
|
=====================[ ERROR ]=====================
|
||||||
|
The Paper project directory is not a properly cloned Git repository.
|
||||||
|
|
||||||
|
In order to build Paper from source you must clone
|
||||||
|
the Paper repository using Git, not download a code
|
||||||
|
zip from GitHub.
|
||||||
|
|
||||||
|
Built Paper jars are available for download at
|
||||||
|
https://papermc.io/downloads
|
||||||
|
|
||||||
|
See https://github.com/PaperMC/Paper/blob/master/CONTRIBUTING.md
|
||||||
|
for further information on building and modifying Paper.
|
||||||
|
===================================================
|
||||||
|
""".trimIndent()
|
||||||
|
error(errorText)
|
||||||
|
}
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
|
Loading…
Reference in a new issue