Skip to content

Commit 9f73f5b

Browse files
authored
Do not release a dirty version which results from generating files dynamically.
1 parent ae9b333 commit 9f73f5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ subprojects {
2626
// Set the group and version across all subprojects to ensure consistency
2727
group 'com.clarifai.clarifai-api2'
2828
def details = versionDetails()
29-
if (details.commitDistance == 0) {
30-
version details.lastTag
31-
} else {
32-
version details.lastTag + '-' + details.gitHash
29+
def tag = details.lastTag.replace(".dirty", "")
30+
if (details.commitDistance != 0) {
31+
tag = tag + '-' + details.gitHash
3332
}
33+
version tag
3434
println("Computed version as: ${getVersion()}")
3535

3636
repositories {

0 commit comments

Comments
 (0)