mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
29 lines
763 B
Plaintext
29 lines
763 B
Plaintext
|
import org.ajoberstar.grgit.Grgit
|
||
|
|
||
|
println("""
|
||
|
*******************************************
|
||
|
You are building WorldEdit!
|
||
|
|
||
|
If you encounter trouble:
|
||
|
1) Read COMPILING.md if you haven't yet
|
||
|
2) Try running 'build' in a separate Gradle run
|
||
|
3) Use gradlew and not gradle
|
||
|
4) If you still need help, ask on Discord! https://discord.gg/enginehub
|
||
|
|
||
|
Output files will be in [subproject]/build/libs
|
||
|
*******************************************
|
||
|
""")
|
||
|
|
||
|
applyRootArtifactoryConfig()
|
||
|
|
||
|
if (!project.hasProperty("gitCommitHash")) {
|
||
|
apply(plugin = "org.ajoberstar.grgit")
|
||
|
ext["gitCommitHash"] = try {
|
||
|
(ext["grgit"] as Grgit).head().abbreviatedId
|
||
|
} catch (e: Exception) {
|
||
|
println("Error getting commit hash: " + e.message)
|
||
|
|
||
|
"no_git_id"
|
||
|
}
|
||
|
}
|