public class DependencySet extends Object
| Modifier and Type | Field and Description |
|---|---|
static DependencySet |
ALL
Includes all compile dependencies.
|
private List<String> |
excludes
Set of dependencies to excludes.
|
private List<String> |
includes
Set of dependencies to includes.
|
private DependencySetOptions |
options
The dependency set options
|
private String |
scope
Sets the dependency scope for this
DependencySet. |
private boolean |
useTransitiveDependencies
Determines whether transitive dependencies will be included in the processing of the
current dependency set.
|
| Constructor and Description |
|---|
DependencySet() |
| Modifier and Type | Method and Description |
|---|---|
DependencySet |
addExclude(String string) |
DependencySet |
addInclude(String string) |
List<String> |
getExcludes() |
List<String> |
getIncludes() |
DependencySetOptions |
getOptions() |
String |
getScope()
Get sets the dependency scope for this
DependencySet. |
boolean |
isUseTransitiveDependencies()
Get determines whether transitive dependencies will be included in the processing of
the current dependency set.
|
DependencySet |
removeExclude(String string) |
DependencySet |
removeInclude(String string) |
DependencySet |
setExcludes(List<String> excludes)
Set when <exclude> subelements are present, they define a set of dependency artifact
coordinates to exclude.
|
DependencySet |
setIncludes(List<String> includes)
Set when <include> subelements are present, they define a set of artifact coordinates
to include.
|
DependencySet |
setOptions(DependencySetOptions options)
Sets the dependency set options used to configure the included and excluded files.
|
DependencySet |
setScope(String scope)
Set sets the dependency scope for this
DependencySet. |
DependencySet |
setUseTransitiveDependencies(boolean useTransitiveDependencies)
Set determines whether transitive dependencies will be included in the processing of
the current dependency set.
|
public static final DependencySet ALL
private String scope
DependencySet.
Default scope value is "runtime".private DependencySetOptions options
private boolean useTransitiveDependencies
public DependencySet addExclude(String string)
public DependencySet addInclude(String string)
public String getScope()
DependencySet.
Default scope value is "runtime".public boolean isUseTransitiveDependencies()
public DependencySet removeExclude(String string)
public DependencySet removeInclude(String string)
public DependencySet setExcludes(List<String> excludes)
Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:vertx-*.
excludes - the list of excludesDependencySetOptionspublic DependencySet setIncludes(List<String> includes)
Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:vertx-*.
includes - the list of includesDependencySetOptionspublic DependencySet setScope(String scope)
DependencySet.
Default scope value is "runtime".scope - the scope, must not be nullDependencySetOptionspublic DependencySet setUseTransitiveDependencies(boolean useTransitiveDependencies)
useTransitiveDependencies - whether or not transitive dependencies are embeddedDependencySetOptionspublic DependencySetOptions getOptions()
public DependencySet setOptions(DependencySetOptions options)
options - the optionsDependencySetOptionsCopyright © 2018. All rights reserved.