public interface Dependencies
AndroidArtifact.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Dependencies.ProjectIdentifier
' A Unique identifier for a project.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<JavaLibrary> |
getJavaLibraries()
The list of Java library dependencies.
|
java.util.Collection<Dependencies.ProjectIdentifier> |
getJavaModules()
Returns the list of Java Modules.
|
java.util.Collection<AndroidLibrary> |
getLibraries()
The list of Android library dependencies.
|
java.util.Collection<java.lang.String> |
getProjects()
Deprecated.
|
@NonNull java.util.Collection<AndroidLibrary> getLibraries()
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().
@NonNull java.util.Collection<JavaLibrary> getJavaLibraries()
This is a flattened list containing all transitive external dependencies.
@NonNull @Deprecated java.util.Collection<java.lang.String> getProjects()
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().
getJavaLibraries(),
getJavaModules()@NonNull java.util.Collection<Dependencies.ProjectIdentifier> getJavaModules()