Plex-FAWE/build.gradle.kts

29 lines
768 B
Plaintext
Raw Normal View History

2019-07-10 23:33:21 +00:00
import org.ajoberstar.grgit.Grgit
2019-07-14 05:16:16 +00:00
logger.lifecycle("""
2019-07-10 23:33:21 +00:00
*******************************************
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 {
2019-07-14 05:16:16 +00:00
(ext["grgit"] as Grgit?)?.head()?.abbreviatedId
2019-07-10 23:33:21 +00:00
} catch (e: Exception) {
2019-07-14 05:16:16 +00:00
logger.warn("Error getting commit hash", e)
2019-07-10 23:33:21 +00:00
"no_git_id"
}
}