Try to fix this

This commit is contained in:
Johannes Frohnmeyer 2021-11-30 18:04:43 +00:00
parent d4e2d32d91
commit 03e6b03bb1
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ if (grgit != null) {
ext.currentVer = "0.0.0+notag"
grgit.open(dir: project.projectDir.toString())
def tagList = grgit.tag.list()
tagList.sort((left, right) -> left.commit.dateTime.compareTo(right.commit.dateTim))
if (tagList.size() >= 1) {
def currentTag = tagList.get(tagList.size() - 1)
ext.currentType = VersionType.RELEASE