public final class DependencyManagement extends Object
Constructor and Description |
---|
DependencyManagement()
Creates an empty management update.
|
Modifier and Type | Method and Description |
---|---|
Collection<Exclusion> |
getExclusions()
Gets the new exclusions to apply to the dependency.
|
Boolean |
getOptional()
Gets the new optional flag to apply to the dependency.
|
Map<String,String> |
getProperties()
Gets the new properties to apply to the dependency.
|
String |
getScope()
Gets the new scope to apply to the dependency.
|
String |
getVersion()
Gets the new version to apply to the dependency.
|
DependencyManagement |
setExclusions(Collection<Exclusion> exclusions)
Sets the new exclusions to apply to the dependency.
|
DependencyManagement |
setOptional(Boolean optional)
Sets the new optional flag to apply to the dependency.
|
DependencyManagement |
setProperties(Map<String,String> properties)
Sets the new properties to apply to the dependency.
|
DependencyManagement |
setScope(String scope)
Sets the new scope to apply to the dependency.
|
DependencyManagement |
setVersion(String version)
Sets the new version to apply to the dependency.
|
public DependencyManagement()
public String getVersion()
null
if the version is not managed and the existing dependency version should
remain unchanged.public DependencyManagement setVersion(String version)
version
- The new version, may be null
if the version is not managed.null
.public String getScope()
null
if the scope is not managed and the existing dependency scope should remain
unchanged.public DependencyManagement setScope(String scope)
scope
- The new scope, may be null
if the scope is not managed.null
.public Boolean getOptional()
null
if the flag is not managed and the existing optional flag of the
dependency should remain unchanged.public DependencyManagement setOptional(Boolean optional)
optional
- The optional flag, may be null
if the flag is not managed.null
.public Collection<Exclusion> getExclusions()
null
if the exclusions are not managed and the existing dependency
exclusions should remain unchanged.public DependencyManagement setExclusions(Collection<Exclusion> exclusions)
exclusions
- The new exclusions, may be null
if the exclusions are not managed.null
.public Map<String,String> getProperties()
null
if the properties are not managed and the existing properties
should remain unchanged.public DependencyManagement setProperties(Map<String,String> properties)
properties
- The new artifact properties, may be null
if the properties are not managed.null
.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.