Package org.eclipse.aether.collection
Class DependencyManagement
- java.lang.Object
-
- org.eclipse.aether.collection.DependencyManagement
-
public final class DependencyManagement extends java.lang.ObjectThe management updates to apply to a dependency.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<Exclusion>exclusionsprivate java.lang.Booleanoptionalprivate java.util.Map<java.lang.String,java.lang.String>propertiesprivate java.lang.Stringscopeprivate java.lang.Stringversion
-
Constructor Summary
Constructors Constructor Description DependencyManagement()Creates an empty management update.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Exclusion>getExclusions()Gets the new exclusions to apply to the dependency.java.lang.BooleangetOptional()Gets the new optional flag to apply to the dependency.java.util.Map<java.lang.String,java.lang.String>getProperties()Gets the new properties to apply to the dependency.java.lang.StringgetScope()Gets the new scope to apply to the dependency.java.lang.StringgetVersion()Gets the new version to apply to the dependency.DependencyManagementsetExclusions(java.util.Collection<Exclusion> exclusions)Sets the new exclusions to apply to the dependency.DependencyManagementsetOptional(java.lang.Boolean optional)Sets the new optional flag to apply to the dependency.DependencyManagementsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)Sets the new properties to apply to the dependency.DependencyManagementsetScope(java.lang.String scope)Sets the new scope to apply to the dependency.DependencyManagementsetVersion(java.lang.String version)Sets the new version to apply to the dependency.
-
-
-
Field Detail
-
version
private java.lang.String version
-
scope
private java.lang.String scope
-
optional
private java.lang.Boolean optional
-
exclusions
private java.util.Collection<Exclusion> exclusions
-
properties
private java.util.Map<java.lang.String,java.lang.String> properties
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Gets the new version to apply to the dependency.- Returns:
- The new version or
nullif the version is not managed and the existing dependency version should remain unchanged.
-
setVersion
public DependencyManagement setVersion(java.lang.String version)
Sets the new version to apply to the dependency.- Parameters:
version- The new version, may benullif the version is not managed.- Returns:
- This management update for chaining, never
null.
-
getScope
public java.lang.String getScope()
Gets the new scope to apply to the dependency.- Returns:
- The new scope or
nullif the scope is not managed and the existing dependency scope should remain unchanged.
-
setScope
public DependencyManagement setScope(java.lang.String scope)
Sets the new scope to apply to the dependency.- Parameters:
scope- The new scope, may benullif the scope is not managed.- Returns:
- This management update for chaining, never
null.
-
getOptional
public java.lang.Boolean getOptional()
Gets the new optional flag to apply to the dependency.- Returns:
- The new optional flag or
nullif the flag is not managed and the existing optional flag of the dependency should remain unchanged.
-
setOptional
public DependencyManagement setOptional(java.lang.Boolean optional)
Sets the new optional flag to apply to the dependency.- Parameters:
optional- The optional flag, may benullif the flag is not managed.- Returns:
- This management update for chaining, never
null.
-
getExclusions
public java.util.Collection<Exclusion> getExclusions()
Gets the new exclusions to apply to the dependency. Note that this collection denotes the complete set of exclusions for the dependency, i.e. the dependency manager controls whether any existing exclusions get merged with information from dependency management or overridden by it.- Returns:
- The new exclusions or
nullif the exclusions are not managed and the existing dependency exclusions should remain unchanged.
-
setExclusions
public DependencyManagement setExclusions(java.util.Collection<Exclusion> exclusions)
Sets the new exclusions to apply to the dependency. Note that this collection denotes the complete set of exclusions for the dependency, i.e. the dependency manager controls whether any existing exclusions get merged with information from dependency management or overridden by it.- Parameters:
exclusions- The new exclusions, may benullif the exclusions are not managed.- Returns:
- This management update for chaining, never
null.
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Gets the new properties to apply to the dependency. Note that this map denotes the complete set of properties, i.e. the dependency manager controls whether any existing properties get merged with the information from dependency management or overridden by it.- Returns:
- The new artifact properties or
nullif the properties are not managed and the existing properties should remain unchanged.
-
setProperties
public DependencyManagement setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the new properties to apply to the dependency. Note that this map denotes the complete set of properties, i.e. the dependency manager controls whether any existing properties get merged with the information from dependency management or overridden by it.- Parameters:
properties- The new artifact properties, may benullif the properties are not managed.- Returns:
- This management update for chaining, never
null.
-
-