Skip to content

Commit

Permalink
Gradle 8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed May 31, 2024
1 parent cadf98d commit c83315c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class GitReadOnlyCommandUtil implements Serializable {

List<TagRef> headTags() {
return headTagsProvider.get().toString()
.split("\n")
.split("\n").toList()
.findAll { String tag -> !tag?.replaceAll("\n", "")?.isEmpty() }
.collect { new TagRef(it) }
}
Expand All @@ -153,7 +153,7 @@ class GitReadOnlyCommandUtil implements Serializable {
Integer getCommitCountForHead() {
try {
return refListCountHeadProvider.get().toString()
.split("\n")
.split("\n").toList()
.first()?.replaceAll("\n", "")?.trim()?.toInteger()
} catch(Exception e) {
return 0
Expand All @@ -168,7 +168,7 @@ class GitReadOnlyCommandUtil implements Serializable {
it.parameters.rootDir.set(rootDir)
}
return describeTagInHeadProvider.get().toString()
.split("\n")
.split("\n").toList()
.first()?.replaceAll("\n", "")?.toString()
} catch(Exception e) {
return null
Expand All @@ -182,7 +182,7 @@ class GitReadOnlyCommandUtil implements Serializable {
it.parameters.tag.set(tag)
}
return commitForTag.get().toString()
.split("\n")
.split("\n").toList()
.first()?.replaceAll("\n", "")?.toString()
} catch(Exception e) {
return null
Expand All @@ -196,7 +196,7 @@ class GitReadOnlyCommandUtil implements Serializable {
it.parameters.commit.set(commit)
}
return tagsPointingAtProvider.get().toString()
.split("\n")
.split("\n").toList()
.findAll { String tag -> !tag?.replaceAll("\n", "")?.isEmpty() }
.collect()
} catch(Exception e) {
Expand Down

0 comments on commit c83315c

Please sign in to comment.