2020-11-26 04:24:24 +08:00
|
|
|
plugins {
|
2021-06-07 20:17:39 +08:00
|
|
|
id("essentials.parent-build-logic")
|
2020-11-26 04:24:24 +08:00
|
|
|
}
|
|
|
|
|
2021-06-07 20:17:39 +08:00
|
|
|
group = "net.essentialsx"
|
2021-12-15 03:19:32 +08:00
|
|
|
version = "2.20.0-SNAPSHOT"
|
2020-11-26 04:24:24 +08:00
|
|
|
|
2021-05-19 19:34:00 +08:00
|
|
|
project.ext {
|
|
|
|
GIT_COMMIT = !indraGit.isPresent() ? "unknown" : indraGit.commit().abbreviate(7).name()
|
2021-06-07 20:17:39 +08:00
|
|
|
GIT_DEPTH = GitUtil.commitsSinceLastTag(project)
|
|
|
|
GIT_BRANCH = GitUtil.headBranchName(project)
|
2020-11-26 04:24:24 +08:00
|
|
|
|
2021-06-07 20:17:39 +08:00
|
|
|
FULL_VERSION = "${version}".replace("-SNAPSHOT", "-dev+${GIT_DEPTH}-${GIT_COMMIT}")
|
2020-11-26 04:24:24 +08:00
|
|
|
}
|