Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-milestone-5
-
Fix Version/s: 1.0-rc-1
-
Component/s: IDE integration
-
Labels:None
Description
The Eclipse WTP plugin uses gradle project name rather than eclipse project name when adding dependent modules. This seems to happen in the WtpComponentFactory here.
E.g. when a WTP project depends on another project which has something like the following configuration, the dependency will not be correct. The eclipse-wtp plugin will create a dependency to a project with the name of the gradle project, rather than that of the eclipse project. This is actually quite serious as the project.name documentation specifies that the name of the project may not be unique within a project hierarchy, while eclipse project names are required to be unique. As a consequence of this it will be necessary for larger projects to explicitly configure the name of the eclipse project to be something else than that of the gradle project.
eclipse {
project {
name = 'some name which differs from project.name'
}
}
This seems to be handled correctly when creating normal project dependencies as seen here. I would assume the same check would fix this problem as well.