mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-16 07:35:23 +01:00
ca49458a44
Definitely did not accidentally make a 40MB jar halfway through.
18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
import org.ajoberstar.grgit.Grgit
|
|
|
|
plugins {
|
|
id("buildlogic.common")
|
|
id("buildlogic.artifactory-root")
|
|
}
|
|
|
|
if (!project.hasProperty("gitCommitHash")) {
|
|
apply(plugin = "org.ajoberstar.grgit")
|
|
ext["gitCommitHash"] = try {
|
|
extensions.getByName<Grgit>("grgit").head()?.abbreviatedId
|
|
} catch (e: Exception) {
|
|
logger.warn("Error getting commit hash", e)
|
|
|
|
"no.git.id"
|
|
}
|
|
}
|