Skip to content

Commit

Permalink
fix: version metadata format
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Mar 30, 2024
1 parent a91e683 commit 3c2c3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group 'net.william278'
version "$ext.plugin_version${versionMetadata()}"
version "$ext.plugin_version"
description "$ext.plugin_description"
defaultTasks 'licenseFormat', 'build'

Expand Down Expand Up @@ -200,7 +200,7 @@ def versionMetadata() {
// If grgit DOES exist, get tag for this commit
def tag = grgit.tag.list().find { it.commit.id == grgit.head().id }
if (tag != null) {
return '-' + tag.name
return '';
}
return '-' + grgit.head().abbreviatedId + (grgit.status().clean ? '' : '-indev')
}

0 comments on commit 3c2c3a6

Please sign in to comment.