Essentials/build.gradle
2022-03-04 11:41:56 +00:00

15 lines
398 B
Groovy

plugins {
id("essentials.parent-build-logic")
}
group = "net.essentialsx"
version = "2.19.3"
project.ext {
GIT_COMMIT = !indraGit.isPresent() ? "unknown" : indraGit.commit().abbreviate(7).name()
GIT_DEPTH = GitUtil.commitsSinceLastTag(project)
GIT_BRANCH = GitUtil.headBranchName(project)
FULL_VERSION = "${version}".replace("-SNAPSHOT", "-dev+${GIT_DEPTH}-${GIT_COMMIT}")
}