Skip to content

Commit

Permalink
[Gradle] Fix :docs:yamlRest test cc compatibility
Browse files Browse the repository at this point in the history
- reference a Gradle script object from a Groovy closure during execution phase is not allowed
  • Loading branch information
breskeby committed Jan 7, 2025
1 parent edfe2c5 commit 68c440a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
}

tasks.named("yamlRestTest").configure {
def repoFolder = "${layout.buildDirectory.asFile.get()}/cluster/shared/repo"
doFirst {
delete("${buildDir}/cluster/shared/repo")
delete(repoFolder)
}
}

Expand Down

0 comments on commit 68c440a

Please sign in to comment.