From 839269e9c53bb809625dcf6238b7defffe320653 Mon Sep 17 00:00:00 2001 From: Marcus Hert da Coregio Date: Wed, 5 May 2021 17:12:58 -0300 Subject: [PATCH] Update buildSrc to build on Windows Closes gh-9724 --- .../src/test/resources/samples/showcase/settings.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/test/resources/samples/showcase/settings.gradle b/buildSrc/src/test/resources/samples/showcase/settings.gradle index 1997a84cc3..5b63a3c3ab 100644 --- a/buildSrc/src/test/resources/samples/showcase/settings.gradle +++ b/buildSrc/src/test/resources/samples/showcase/settings.gradle @@ -1,3 +1,5 @@ +import java.util.regex.Matcher + rootProject.name = 'spring-gradle-build-conventions-sample' @@ -10,7 +12,7 @@ String rootDirPath = rootDir.absolutePath + File.separator projects.each { File buildFile -> String buildFilePath = buildFile.parentFile.absolutePath - String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':') + String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(Matcher.quoteReplacement(File.separator), ':') include projectPath @@ -20,4 +22,4 @@ projects.each { File buildFile -> project.buildFileName = buildFile.name } project.projectDir = buildFile.parentFile -} \ No newline at end of file +}