jdaugherty commented on code in PR #14093:
URL: https://github.com/apache/grails-core/pull/14093#discussion_r2021143358


##########
gradle/functional-test-config.gradle:
##########
@@ -0,0 +1,39 @@
+def pluginsGroupProjects = rootProject.subprojects
+        .findAll { it.group == 'org.grails.plugins' }
+        .collect { it.name }
+
+configurations.configureEach {
+    resolutionStrategy {
+        dependencySubstitution {
+            for (def possibleProject : rootProject.subprojects) {
+                if (!possibleProject.name.startsWith('grails-test-suite') && 
!possibleProject.name.contains('grails-test-examples')) {
+                    def artifactId = mappedArtifactIds[possibleProject.name] 
?: possibleProject.name
+                    def substitutedArtifact = "${possibleProject.name in 
pluginsGroupProjects ? 'org.grails.plugins' : 'org.grails'}:$artifactId"

Review Comment:
   Making the functional tests dependent on the framework projects seems to fix 
resolving the group:  
   
                Set<Project> nonFunctionalProjects = 
rootProject.subprojects.findAll { !it.name.startsWith('grails-test-examples') }
                nonFunctionalProjects.each {
                    project.evaluationDependsOn(it.path)
                }



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to