This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch grails-geb in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 3666752ed12dbab4c829aba3e9bc0d2e34d3634e Author: James Daugherty <[email protected]> AuthorDate: Sun Apr 20 19:35:45 2025 -0400 Switch to copy to see if it fixes windows failures --- gradle/grails-data-tck-config.gradle | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gradle/grails-data-tck-config.gradle b/gradle/grails-data-tck-config.gradle index 4d166e22ca..b014a690bd 100644 --- a/gradle/grails-data-tck-config.gradle +++ b/gradle/grails-data-tck-config.gradle @@ -23,13 +23,18 @@ dependencies { // TODO: gradle will happily put the jar file on the classpath, but junit won't find the tests. // Dynamic test discovery also won't find them so extract the class files to force junit to work. -TaskProvider<Sync> extractTck = tasks.register('extractTckJar', Sync).configure { Sync it -> +TaskProvider<Sync> extractTck = tasks.register('extractTckJar').configure { Task it -> it.inputs.files(configurations.tck) - - it.from { zipTree(configurations.tck.singleFile) } - it.into(layout.buildDirectory.dir('extracted-tck-classes')) - it.finalizedBy(tasks.withType(Test)) it.outputs.updateWhen { false } // force the task to not cache + it.finalizedBy(tasks.withType(Test)) + + it.doLast { + copy { + it.from { zipTree(configurations.tck.singleFile) } + it.into(layout.buildDirectory.dir('extracted-tck-classes')) + + } + } } tasks.withType(Test).configureEach {
