Skip to content

Commit 96af440

Browse files
authored
[Gradle] Fix :docs:yamlRest test cc compatibility (#119680) (#119684)
- reference a Gradle script object from a Groovy closure during execution phase is not allowed
1 parent c0fcfd9 commit 96af440

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
178178
}
179179

180180
tasks.named("yamlRestTest").configure {
181+
def repoFolder = "${layout.buildDirectory.asFile.get()}/cluster/shared/repo"
181182
doFirst {
182-
delete("${buildDir}/cluster/shared/repo")
183+
delete(repoFolder)
183184
}
184185
}
185186

0 commit comments

Comments
 (0)