diff --git a/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPluginFuncTest.groovy b/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPluginFuncTest.groovy index e7154509b209..e92bf42015cc 100644 --- a/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPluginFuncTest.groovy +++ b/build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPluginFuncTest.groovy @@ -172,7 +172,7 @@ class ElasticsearchJavaModulePathPluginFuncTest extends AbstractJavaGradleFuncTe def "included build with non module dependencies"() { given: file(rootBuild.root, 'settings.gradle') << """ - includeBuild '$projectDir' + includeBuild '${projectDir.path.replace('\\', '\\\\')}' """ file(rootBuild.root, 'build.gradle') << """ @@ -204,7 +204,7 @@ class ElasticsearchJavaModulePathPluginFuncTest extends AbstractJavaGradleFuncTe def "included build with module dependencies"() { given: file(rootBuild.root, 'settings.gradle') << """ - includeBuild '$projectDir' + includeBuild '${projectDir.path.replace('\\', '\\\\')}' """ file(rootBuild.root, 'build.gradle') << """