Affects Version/s: 1.5-rc-2
Fix Version/s: None
This is a little hard to explain so I will try illustrate with an example. We have a subproject called "grails-datastore-gorm-mongo" that is defined in the same multiproject build as another subproject called "grails-datastore-gorm". The "grails-datastore-gorm-mongo" project declares a dependency on an external jar file not part of the multiproject build:
This dependency transtively depends on "grails-datastore-gorm", which is as I said a project part of the multi project build. What happens is that Gradle actually downloads the published POM for the transitive dependency "grails-datastore-gorm", this is wrong because "grails-datastore-gorm" is part of the current multi-project build.
The result is a weird error such as
This is completely meaningless in describing the actual problem and had me digging into the bugs in the "signing" plugin. The solution for me was to go off and change the dependency declaration, for example:
Even though this is a solution, and allowed me to proceed this is wrong. I shouldn't have to exclude this transitive dependency as it is part of my current multi project build. I'm actually forced to provide wrong dependency configuration. The issue is compounded by the very bad error message which had me scratching my head for hours.