class VariantDependencies extends Object
Object that represents the dependencies of a "config", in the sense of defaultConfigs, build type and flavors. The dependencies are expressed as composite Gradle configuration objects that extends all the configuration objects of the "configs". It optionally contains the dependencies for a test config for the given config.
Type | Name and description |
---|---|
boolean |
annotationsPresent Whether we have a direct dependency on com.android.support:support-annotations; this is used to drive whether we extract annotations when building libraries for example |
DependencyChecker |
checker |
String |
name |
Type | Name and description |
---|---|
void |
addJars(Collection<JarDependency> list) |
void |
addLibraries(List<LibraryDependencyImpl> list) |
void |
addLocalJars(Collection<JarDependency> list) |
static VariantDependencies |
compute(org.gradle.api.Project project, String name, boolean publishVariant, boolean isLibrary, ConfigurationProvider... providers) |
List<? extends LibraryDependency> |
getAndroidDependencies() |
org.gradle.api.artifacts.Configuration |
getCompileConfiguration() |
List<JarDependency> |
getJarDependencies() |
List<LibraryDependencyImpl> |
getLibraries() |
List<JarDependency> |
getLocalDependencies() |
String |
getName() |
org.gradle.api.artifacts.Configuration |
getPackageConfiguration() |
org.gradle.api.artifacts.Configuration |
getProvidedConfiguration() |
org.gradle.api.artifacts.Configuration |
getPublishConfiguration() |
Whether we have a direct dependency on com.android.support:support-annotations; this is used to drive whether we extract annotations when building libraries for example