Skip to content

Commit 3607da8

Browse files
authored
Fix getting version info from GIT tag when parameter not given
1 parent 6ee76c0 commit 3607da8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

version.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ buildscript {
3939
mavenCentral()
4040
}
4141
dependencies {
42-
classpath 'org.ajoberstar:gradle-git:1.2.0'
42+
classpath 'org.ajoberstar:gradle-git:1.6.0'
4343
}
4444
}
4545

@@ -140,7 +140,7 @@ task configureVersionInfo {
140140
if (project.hasProperty("tag_name")) {
141141
jmeGitTag = project.getProperty("tag_name")
142142
} else {
143-
jmeGitTag = grgit.tag.list().find { it.commit == head }
143+
jmeGitTag = grgit.tag.list().find { it.commit == head }?.name
144144
}
145145

146146
def releaseInfo = getReleaseInfo(jmeGitTag)

0 commit comments

Comments
 (0)