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


##########
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:
   > If you add the substitution code in a project.afterEvaluate { } block, 
does it work?
   
   No, that does not seem to work.



-- 
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