@Experimental @Generated @ThreadSafe @Immutable public class DependencyManagement extends Object implements Serializable, InputLocationTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyManagement.Builder
Builder class used to create DependencyManagement instances.
|
| Modifier and Type | Method and Description |
|---|---|
List<Dependency> |
getDependencies()
The dependencies specified here are not used until they are referenced in a
POM within the group.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
static DependencyManagement.Builder |
newBuilder()
Creates a new
DependencyManagement builder instance. |
static DependencyManagement.Builder |
newBuilder(boolean withDefaults)
Creates a new
DependencyManagement builder instance using default values or not. |
static DependencyManagement.Builder |
newBuilder(DependencyManagement from)
Creates a new
DependencyManagement builder instance using the specified object as a basis. |
static DependencyManagement.Builder |
newBuilder(DependencyManagement from,
boolean forceCopy)
Creates a new
DependencyManagement builder instance using the specified object as a basis. |
static DependencyManagement |
newInstance()
Creates a new
DependencyManagement instance. |
static DependencyManagement |
newInstance(boolean withDefaults)
Creates a new
DependencyManagement instance using default values or not. |
DependencyManagement.Builder |
with()
Creates a new builder with this object as the basis.
|
DependencyManagement |
withDependencies(Collection<Dependency> dependencies)
Creates a new
DependencyManagement instance using the specified dependencies. |
@Nonnull public List<Dependency> getDependencies()
List<Dependency>public InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public DependencyManagement.Builder with()
Builder@Nonnull public DependencyManagement withDependencies(Collection<Dependency> dependencies)
DependencyManagement instance using the specified dependencies.dependencies - the new Collection<Dependency> to useDependencyManagement with the specified dependencies@Nonnull public static DependencyManagement newInstance()
DependencyManagement instance.
Equivalent to newInstance( true ).DependencyManagementnewInstance(boolean)@Nonnull public static DependencyManagement newInstance(boolean withDefaults)
DependencyManagement instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedDependencyManagement@Nonnull public static DependencyManagement.Builder newBuilder()
DependencyManagement builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static DependencyManagement.Builder newBuilder(boolean withDefaults)
DependencyManagement builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static DependencyManagement.Builder newBuilder(DependencyManagement from)
DependencyManagement builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the DependencyManagement instance to use as a basisBuilder@Nonnull public static DependencyManagement.Builder newBuilder(DependencyManagement from, boolean forceCopy)
DependencyManagement builder instance using the specified object as a basis.from - the DependencyManagement instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.