public class MavenDependency extends Dependency
Dependency
.Modifier and Type | Class and Description |
---|---|
static class |
MavenDependency.Builder
Builder for a Maven dependency.
|
Dependency.Exclusion
Modifier and Type | Field and Description |
---|---|
protected boolean |
optional |
Modifier | Constructor and Description |
---|---|
protected |
MavenDependency(MavenDependency.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static MavenDependency.Builder |
from(Dependency dependency)
Initialize a new dependency
MavenDependency.Builder with the state of the specified
Dependency . |
boolean |
isOptional()
Return whether this dependency is
optional . |
static MavenDependency.Builder |
withCoordinates(String groupId,
String artifactId)
Initialize a new dependency
MavenDependency.Builder with the specified coordinates. |
getArtifactId, getClassifier, getExclusions, getGroupId, getScope, getType, getVersion
protected MavenDependency(MavenDependency.Builder builder)
public static MavenDependency.Builder withCoordinates(String groupId, String artifactId)
MavenDependency.Builder
with the specified coordinates.groupId
- the group ID of the dependencyartifactId
- the artifact ID of the dependencypublic static MavenDependency.Builder from(Dependency dependency)
MavenDependency.Builder
with the state of the specified
Dependency
.dependency
- the dependency to use to initialize the builderdependency
public boolean isOptional()
optional
.true
if the dependency is optionalCopyright © 2021 Pivotal Software, Inc.. All rights reserved.