Class MavenDependency.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.Dependency.Builder<MavenDependency.Builder>
io.spring.initializr.generator.buildsystem.maven.MavenDependency.Builder
- Enclosing class:
- MavenDependency
Builder for a Maven dependency.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aDependency
with the current state of this builder.protected MavenDependency.Builder
initialize
(Dependency dependency) optional
(boolean optional) Specify if the dependency isoptional
.Methods inherited from class io.spring.initializr.generator.buildsystem.Dependency.Builder
artifactId, classifier, exclusions, exclusions, groupId, scope, self, type, version
-
Constructor Details
-
Builder
-
-
Method Details
-
optional
Specify if the dependency isoptional
.- Parameters:
optional
- whether the dependency is optional- Returns:
- this for method chaining
-
initialize
- Overrides:
initialize
in classDependency.Builder<MavenDependency.Builder>
-
build
Description copied from class:Dependency.Builder
Build aDependency
with the current state of this builder.- Overrides:
build
in classDependency.Builder<MavenDependency.Builder>
- Returns:
- a
Dependency
-