Package: org.gradle.tooling.model.eclipse

## [Java] Interface EclipseProjectDependency

- org.gradle.tooling.model.ProjectDependency

- All Superinterfaces:
    Dependency, EclipseClasspathEntry, ProjectDependency

  Represents a dependency on another Eclipse project.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `String` | `getPath()` Returns the path to use for this project dependency.
    `EclipseProjectIdentifier` | `getTarget()` Returns the identifier of the target eclipse project.
    `HierarchicalEclipseProject` | `getTargetProject()` Returns the target of this dependency.
    `boolean` | `isExported()` Marks this dependency as exported.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface EclipseClasspathEntry` | `getClasspathAttributes`

- - ### Method Detail

    - #### public String getPath()

      Returns the path to use for this project dependency.

    - #### @Incubating public EclipseProjectIdentifier getTarget()

      Returns the identifier of the target eclipse project.

      Returns:
        The target identifier, never null.
      Since:
        2.14

    - #### @Deprecated public HierarchicalEclipseProject getTargetProject()

      Returns the target of this dependency.

      Returns:
        The target project, or null for a dependency on a different build within a composite.

    - #### public boolean isExported()

      Marks this dependency as exported.

      Returns:
        whether this dependency needs to be exported.
      Since:
        2.5