Skip to content

Commit

Permalink
Updated gradle build script by refining DNA version matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
leifeld committed Aug 26, 2024
1 parent eaef4e8 commit a6ba509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dna/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jar {
// parse DNA version number and add to jar file name
new File(project(':dna').projectDir.toString() + '/src/main/java/dna/Dna.java').eachLine { line ->
if (line ==~ /.*String version.*/) {
def matches = (line =~ /\d+\.\d+\.\d+/)
archiveVersion = matches[0]
def matches = (line =~ /\d+\.\d+\.\d+(?:\.\d+)?/)
archiveVersion = matches[0].toString()
}
}

Expand Down

0 comments on commit a6ba509

Please sign in to comment.