Groovy Documentation

org.gradle.api.artifacts
[Java] Interface ProjectDependency

org.gradle.api.artifacts.SelfResolvingDependency
  org.gradle.api.artifacts.ModuleDependency
      org.gradle.api.artifacts.ProjectDependency
          org.gradle.api.Buildable
              org.gradle.tooling.model.Dependency
All Superinterfaces:
SelfResolvingDependency, ModuleDependency, Buildable, Dependency

public interface ProjectDependency
extends ModuleDependency, SelfResolvingDependency

A ProjectDependency is a Dependency on another project in the current project hierarchy.

Authors:
Hans Dockter


Method Summary
ProjectDependency copy()

{@inheritDoc}

Project getDependencyProject()

Returns the project associated with this project dependency.

Configuration getProjectConfiguration()

Returns the configuration associated with this project dependency.

 
Methods inherited from interface SelfResolvingDependency
resolve, resolve
 
Methods inherited from interface ModuleDependency
addArtifact, artifact, copy, exclude, getArtifacts, getConfiguration, getExcludeRules, isTransitive, setTransitive
 

Method Detail

copy

public ProjectDependency copy()
{@inheritDoc}


getDependencyProject

public Project getDependencyProject()
Returns the project associated with this project dependency.


getProjectConfiguration

public Configuration getProjectConfiguration()
Returns the configuration associated with this project dependency. The configuration belongs to the project associated with this project dependency.
See Also:
getDependencyProject()


 

Groovy Documentation