Interface Dependencies


public interface Dependencies
A set of dependencies for an AndroidArtifact.
  • Method Details

    • getLibraries

      @NonNull Collection<AndroidLibrary> getLibraries()
      The list of Android library dependencies.

      On versions < 3.0, the list contains direct dependencies only, which themselves contain their transitive dependencies. Starting with version 3.0, the list is flattened and contains all the transitive dependencies.

      This includes both modules and external dependencies. They can be differentiated with Library.getProject().

      Returns:
      the list of libraries.
    • getJavaLibraries

      @NonNull Collection<JavaLibrary> getJavaLibraries()
      The list of Java library dependencies.

      This is a flattened list containing all transitive external dependencies.

      Returns:
      the list of Java library dependencies.
    • getProjects

      @NonNull @Deprecated Collection<String> getProjects()
      Deprecated.
      The list of project dependencies. This is only for non Android module dependencies (which right now is Java-only modules).

      IMPORTANT: This is not compatible with Composite Builds. This should not be used anymore starting with version 3.1. This is now superseded by getJavaModules().

      Returns:
      the list of projects.
      See Also:
    • getJavaModules

      @NonNull Collection<Dependencies.ProjectIdentifier> getJavaModules()
      Returns the list of Java Modules. @Since 3.1
    • getRuntimeOnlyClasses

      @NonNull Collection<File> getRuntimeOnlyClasses()
      Returns the list of runtime only dependency classes. @Since 3.5