Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1881

The Eclipse WTP plugin uses project name rather than eclipse project name when adding dependent modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0-milestone-5
    • Fix Version/s: 1.0-rc-1

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

        Attachments

          Activity

            People

            Assignee:
            szczepiq Szczepan Faber
            Reporter:
            sune Sune Wettersteen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: