Update build.gradle

This commit is contained in:
Glease authored and GitHub committed 2023-07-15 15:52:13 +08:00
1 parent a0b33a2172
commit 08203c8222
1 file changed
+1
+1
View File
@@ -362,6 +362,7 @@ try {
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
if (versionOverride == null) {
def gitDetails = versionDetails()
project.logger.error("gitDetails: {}", gitDetails)
def isDirty = gitVersion().endsWith(".dirty") // No public API for this, isCleanTag has a different meaning
String branchName = gitDetails.branchName
branchName = branchName.replaceAll("[^a-zA-Z0-9-]+", "-") // sanitize branch names for semver