matrei commented on code in PR #14093:
URL: https://github.com/apache/grails-core/pull/14093#discussion_r2020191755
##########
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:
For some reason `grails-testing-support` and `grails-web-boot` do not show
the right `group`.
Added some logging:
```console
Substituting org.grails:grails-spring with project grails-spring
Substituting org.grails:grails-test with project grails-test
Substituting grails.core.ROOT:grails-testing-support with project
grails-testing-support
Substituting org.grails:grails-web with project grails-web
Substituting grails.core.ROOT:grails-web-boot with project grails-web-boot
Substituting org.grails:grails-web-common with project grails-web-common
```
So, as it is now, it only works as they are in the default group.
--
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]