public static class MavenDependency.Builder extends Dependency.Builder<MavenDependency.Builder>
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String groupId,
String artifactId) |
| Modifier and Type | Method and Description |
|---|---|
MavenDependency |
build()
Build a
Dependency with the current state of this builder. |
protected MavenDependency.Builder |
initialize(Dependency dependency) |
MavenDependency.Builder |
optional(boolean optional)
Specify if the dependency is
optional. |
artifactId, classifier, exclusions, exclusions, groupId, scope, self, type, versionpublic MavenDependency.Builder optional(boolean optional)
optional.optional - whether the dependency is optionalprotected MavenDependency.Builder initialize(Dependency dependency)
initialize in class Dependency.Builder<MavenDependency.Builder>public MavenDependency build()
Dependency.BuilderDependency with the current state of this builder.build in class Dependency.Builder<MavenDependency.Builder>DependencyCopyright © 2022 Pivotal Software, Inc.. All rights reserved.