public abstract class ManagedDependencies extends Object implements Dependencies
Dependencies
used by various spring boot tools. Provides programmatic access to
'spring-boot-dependencies' and can also support user defined version managed
dependencies.Dependency
Modifier and Type | Method and Description |
---|---|
Dependency |
find(String artifactId)
Find a single dependency for the artifact IDs.
|
Dependency |
find(String groupId,
String artifactId)
Find a single dependency for the given group and artifact IDs.
|
static ManagedDependencies |
get()
Return spring-boot managed dependencies.
|
static ManagedDependencies |
get(Collection<Dependencies> versionManagedDependencies)
Return spring-boot managed dependencies with optional version managed dependencies.
|
String |
getSpringBootVersion()
Return the 'spring-boot-dependencies' POM version.
|
String |
getVersion()
Deprecated.
since 1.1.0 in favor of
getSpringBootVersion() |
Iterator<Dependency> |
iterator()
Provide an
Iterator over all managed Dependencies . |
@Deprecated public String getVersion()
getSpringBootVersion()
public String getSpringBootVersion()
public Dependency find(String groupId, String artifactId)
find
in interface Dependencies
groupId
- the group IDartifactId
- the artifact IDDependency
or null
public Dependency find(String artifactId)
find
in interface Dependencies
artifactId
- the artifact IDDependency
or null
public Iterator<Dependency> iterator()
Iterator
over all managed Dependencies
.iterator
in interface Iterable<Dependency>
iterator
in interface Dependencies
public static ManagedDependencies get()
get(Collection)
public static ManagedDependencies get(Collection<Dependencies> versionManagedDependencies)
versionManagedDependencies
- a collection of Dependencies
that take
precedence over the spring-boot-dependencies.Copyright © 2015 Pivotal Software, Inc.. All rights reserved.