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 3c124de068560783ea83a454215555b078045760 Author: James Daugherty <[email protected]> AuthorDate: Sun Apr 20 17:30:57 2025 -0400 Add workaround for tck tests not being copied --- gradle/grails-data-tck-config.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle/grails-data-tck-config.gradle b/gradle/grails-data-tck-config.gradle index 34c30a33f2..493d3644e4 100644 --- a/gradle/grails-data-tck-config.gradle +++ b/gradle/grails-data-tck-config.gradle @@ -28,6 +28,7 @@ TaskProvider<Sync> extractTck = tasks.register('extractTckJar', Sync).configure it.from { zipTree(configurations.tck.singleFile) } it.into(layout.buildDirectory.dir('extracted-tck-classes')) + it.finalizedBy(tasks.withType(Test)) } tasks.withType(Test).configureEach { @@ -65,9 +66,10 @@ tasks.withType(Test).configureEach { // There is a known issue with IntelliJ that can cause it's inspection process to lock up. // this is a work around to help prevent the scenario that causes the lock up. -tasks.register('cleanupTckClasses') { +tasks.register('cleanupTckClasses').configure { Task it -> Provider<Directory> extractDir = layout.buildDirectory.dir('extracted-tck-classes') - doLast { + it.doLast { extractDir.get().asFile.deleteDir() } + it.outputs.upToDateWhen {false} } \ No newline at end of file
