Interface ProjectDependency

    • Method Detail

      • getPath

        java.lang.String getPath()
        Get the path to the project that this dependency refers to relative to its owning build.
        Since:
        8.11
        See Also:
        Project.getPath()
      • getDependencyProject

        @Deprecated
        Project getDependencyProject()
        Deprecated.
        This method will be removed in Gradle 9.0. Accessing the mutable state of other projects should be avoided.
        Returns the project associated with this project dependency.
      • getBuildDependencies

        @Deprecated
        TaskDependency getBuildDependencies()
        Deprecated.
        This class will no longer implement SelfResolvingDependency in Gradle 9.0
        Returns a dependency which contains the tasks which build this artifact. All Buildable implementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.
        Specified by:
        getBuildDependencies in interface Buildable
        Returns:
        The dependency. Never returns null. Returns an empty dependency when this artifact is not built by any tasks.
      • resolve

        @Deprecated
        java.util.Set<java.io.File> resolve​(boolean transitive)
        Deprecated.
        This class will no longer implement SelfResolvingDependency in Gradle 9.0
        Resolves this dependency by specifying the transitive mode. This mode has only an effect if the self resolved dependency is of type ProjectDependency. In this case, if transitive is false, only the self resolving dependencies of the project configuration which are no project dependencies are resolved. If transitive is set to true, other project dependencies belonging to the configuration of the resolved project dependency are resolved recursively.
        Specified by:
        resolve in interface SelfResolvingDependency
        Parameters:
        transitive - Whether to resolve transitively. Has only an effect on a ProjectDependency
        Returns:
        The files which make up this dependency.