2020-11-25 21:24:24 +01:00
|
|
|
plugins {
|
2021-06-07 14:17:39 +02:00
|
|
|
id("essentials.parent-build-logic")
|
2020-11-25 21:24:24 +01:00
|
|
|
}
|
|
|
|
|
2021-06-07 14:17:39 +02:00
|
|
|
group = "net.essentialsx"
|
|
|
|
version = "2.19.0-SNAPSHOT"
|
2020-11-25 21:24:24 +01:00
|
|
|
|
2021-05-19 13:34:00 +02:00
|
|
|
project.ext {
|
|
|
|
GIT_COMMIT = !indraGit.isPresent() ? "unknown" : indraGit.commit().abbreviate(7).name()
|
2021-06-07 14:17:39 +02:00
|
|
|
GIT_DEPTH = GitUtil.commitsSinceLastTag(project)
|
|
|
|
GIT_BRANCH = GitUtil.headBranchName(project)
|
2020-11-25 21:24:24 +01:00
|
|
|
|
2021-06-07 14:17:39 +02:00
|
|
|
FULL_VERSION = "${version}".replace("-SNAPSHOT", "-dev+${GIT_DEPTH}-${GIT_COMMIT}")
|
2020-11-25 21:24:24 +01:00
|
|
|
}
|