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 9991940472852eb0850dc5b8f7727545dc178d0c
Author: James Daugherty <[email protected]>
AuthorDate: Sun Apr 20 14:05:46 2025 -0400

    do not run tck tests when they're not supposed to
---
 gradle/grails-data-tck-config.gradle | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gradle/grails-data-tck-config.gradle 
b/gradle/grails-data-tck-config.gradle
index 208b535b3c..34c30a33f2 100644
--- a/gradle/grails-data-tck-config.gradle
+++ b/gradle/grails-data-tck-config.gradle
@@ -31,6 +31,34 @@ TaskProvider<Sync> extractTck = 
tasks.register('extractTckJar', Sync).configure
 }
 
 tasks.withType(Test).configureEach {
+    onlyIf {
+        if (project.hasProperty('onlyFunctionalTests')) {
+            return false
+        }
+
+        if (project.hasProperty('skipHibernate5Tests') && 
project.name.startsWith('grails-data-hibernate5')) {
+            return false
+        }
+
+        if (project.hasProperty('onlyHibernate5Tests') && 
!project.name.startsWith('grails-data-hibernate5')) {
+            return false
+        }
+
+        if (project.hasProperty('skipMongoTests') && 
project.name.startsWith('grails-data-mongo')) {
+            return false
+        }
+
+        if (project.hasProperty('onlyMongodbTests') && 
!project.name.startsWith('grails-data-mongo')) {
+            return false
+        }
+
+        if (project.hasProperty('onlyCoreTests')) {
+            return false
+        }
+
+        true
+    }
+
     testClassesDirs = objects.fileCollection().from(extractTck, 
testClassesDirs)
     finalizedBy('cleanupTckClasses')
 }

Reply via email to