public final class GradleConfiguration extends Object implements Serializable, ModuleSearchSupport, Comparable<GradleConfiguration>
public Set<GradleDependency.ModuleDependency> getModules()
public String getName()
public String getDescription()
public Set<GradleDependency.ProjectDependency> getProjects()
public Set<GradleDependency.UnresolvedDependency> getUnresolved()
public Set<GradleConfiguration> getExtendsFrom()
public Collection<? extends GradleDependency> getConfiguredDependencies()
GradleConfiguration.getExtendsFrom()
configurations.public GradleConfiguration getDependencyOrigin(GradleDependency d)
GradleConfiguration.getDependencies()
- as a dependency can be present
more than once in a dependency tree graph introduced by different intermediates in
different configurations.
The method retuns null
if the origin cannot be determined.
d
- dependency to inspectnull
.public Collection<GradleDependency> getDependencies()
public Collection<GradleDependency> getDependenciesOf(GradleDependency... path)
public Set<GradleDependency.ModuleDependency> findModules(String group, String artifact, String version)
ModuleSearchSupport
null
for any of the parameters would mean match
all for that parameter.findModules
in interface ModuleSearchSupport
group
- regexp matcher for the group part.artifact
- regexp matcher for the artifact part.version
- regexp matcher for the version part.{@
public Set<GradleDependency.ModuleDependency> findModules(String gav)
ModuleSearchSupport
findModules
in interface ModuleSearchSupport
gav
- the filter criteria in string formModuleSearchSupport.findModules(java.lang.String, java.lang.String, java.lang.String)
public Set<GradleConfiguration> getAllParents()
public GradleDependency.FileCollectionDependency getFiles()
public boolean isResolved()
public boolean isTransitive()
public boolean isCanBeResolved()
public boolean isCanBeConsumed()
true
if this configuration is to be consumed.true
if this configuration is consumable.public Map<String,String> getAttributes()
AttributeContainer
,
where the attribute names are the keys and the attribute string values are the values.public boolean isEmpty()
public int compareTo(GradleConfiguration o)
compareTo
in interface Comparable<GradleConfiguration>