endsWith not startsWith

This commit is contained in:
Vankka 2023-12-23 00:38:59 +02:00
parent 17e888a289
commit 9a97cf7578
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ subprojects {
apply plugin: 'dev.vankka.dependencydownload.plugin'
var versionExtra = ""
if (rootProject.version.startsWith("-SNAPSHOT") && indraGit.isPresent()) {
if (rootProject.version.endsWith("-SNAPSHOT") && indraGit.isPresent()) {
var branch = indraGit.branchName()
if (branch == null) {
branch = "detached-head"