mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-22 17:17:57 +01:00
26 lines
752 B
Plaintext
26 lines
752 B
Plaintext
import org.ajoberstar.grgit.Grgit
|
|
|
|
logger.lifecycle("""
|
|
*******************************************
|
|
You are building WorldGuard!
|
|
If you encounter trouble:
|
|
1) Try running 'build' in a separate Gradle run
|
|
2) Use gradlew and not gradle
|
|
3) 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 {
|
|
Grgit.open(mapOf("currentDir" to project.rootDir))?.head()?.abbreviatedId
|
|
} catch (e: Exception) {
|
|
logger.warn("Error getting commit hash", e)
|
|
|
|
"no.git.id"
|
|
}
|
|
} |