Skip to content

Commit

Permalink
build.gradle: remove unnecessary Pattern.quote() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Aug 17, 2024
1 parent 8e9f4d9 commit 7796838
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.diffplug.spotless.extra.wtp.EclipseWtpFormatterStep
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask
import java.util.regex.Pattern
import org.ajoberstar.grgit.Grgit
import org.gradle.nativeplatform.platform.internal.Architectures
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
Expand All @@ -19,7 +18,7 @@ plugins {
}

def git = Grgit.open(dir: projectDir)
version = "${git.describe(longDescr: true).replaceFirst(Pattern.quote('-'), '.').replaceFirst(Pattern.quote('-g'), '-')}${((!git.status().isClean()) ? '.dirty' : '')}"
version = "${git.describe(longDescr: true).replaceFirst('-', '.').replaceFirst('-g', '-')}${((!git.status().isClean()) ? '.dirty' : '')}"

base {
archivesName = application.applicationName.toLowerCase()
Expand Down

0 comments on commit 7796838

Please sign in to comment.