Package org.eclipse.aether.collection
Class DependencyManagement
java.lang.Object
org.eclipse.aether.collection.DependencyManagement
The management updates to apply to a dependency.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the new exclusions to apply to the dependency.Gets the new optional flag to apply to the dependency.Gets the new properties to apply to the dependency.getScope()Gets the new scope to apply to the dependency.Gets the new version to apply to the dependency.setExclusions(Collection<Exclusion> exclusions) Sets the new exclusions to apply to the dependency.setOptional(Boolean optional) Sets the new optional flag to apply to the dependency.setProperties(Map<String, String> properties) Sets the new properties to apply to the dependency.Sets the new scope to apply to the dependency.setVersion(String version) Sets the new version to apply to the dependency.
- 
Constructor Details- 
DependencyManagementpublic DependencyManagement()Creates an empty management update.
 
- 
- 
Method Details- 
getVersionGets 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.
 
- 
setVersionSets the new version to apply to the dependency.- Parameters:
- version- The new version, may be- nullif the version is not managed.
- Returns:
- This management update for chaining, never null.
 
- 
getScopeGets 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.
 
- 
setScopeSets the new scope to apply to the dependency.- Parameters:
- scope- The new scope, may be- nullif the scope is not managed.
- Returns:
- This management update for chaining, never null.
 
- 
getOptionalGets 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.
 
- 
setOptionalSets the new optional flag to apply to the dependency.- Parameters:
- optional- The optional flag, may be- nullif the flag is not managed.
- Returns:
- This management update for chaining, never null.
 
- 
getExclusionsGets 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.
 
- 
setExclusionsSets 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 be- nullif the exclusions are not managed.
- Returns:
- This management update for chaining, never null.
 
- 
getPropertiesGets 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.
 
- 
setPropertiesSets 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 be- nullif the properties are not managed.
- Returns:
- This management update for chaining, never null.
 
 
-