Skip to content

Commit

Permalink
support -rc suffixes in updateArchUnitExampleVersion
Browse files Browse the repository at this point in the history
So far no existing release version had any suffix after the three groups major.minor.patch. Accepting all word characters plus hyphen and dot should support all version formats we will use in the future.

Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
  • Loading branch information
codecholeric committed Oct 3, 2022
1 parent c3efe74 commit f5c1f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-steps/release/archunit-examples-utils.gradle
Expand Up @@ -3,7 +3,7 @@ ext.updateArchUnitExampleVersion = { File archUnitExampleDir ->
fileTree(archUnitExampleDir) {
include '**/build.gradle'
}.each {File buildFile ->
buildFile.text = buildFile.text.replaceAll(/(com\.tngtech\.archunit:archunit[^:]*:)[\d.]*/, "\$1${version}")
buildFile.text = buildFile.text.replaceAll(/(com\.tngtech\.archunit:archunit[^:]*:)[\w.-]*/, "\$1${version}")
}
}
ext.updateArchUnitExampleSources = { File targetArchUnitExampleDir ->
Expand Down

0 comments on commit f5c1f05

Please sign in to comment.