From f5c1f05e3b44cea58e7640ff60e9265524c3ed03 Mon Sep 17 00:00:00 2001 From: Peter Gafert Date: Tue, 4 Oct 2022 00:03:54 +0700 Subject: [PATCH] support `-rc` suffixes in `updateArchUnitExampleVersion` 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 --- build-steps/release/archunit-examples-utils.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-steps/release/archunit-examples-utils.gradle b/build-steps/release/archunit-examples-utils.gradle index baca4c8aaf..0f4ce46bc8 100644 --- a/build-steps/release/archunit-examples-utils.gradle +++ b/build-steps/release/archunit-examples-utils.gradle @@ -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 ->