Class Dependency.Builder<B extends Dependency.Builder<B>>
java.lang.Object
io.spring.initializr.generator.buildsystem.Dependency.Builder<B>
- Type Parameters:
B
- builder type
- Direct Known Subclasses:
GradleDependency.Builder
,MavenDependency.Builder
- Enclosing class:
- Dependency
Builder for a dependency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactId
(String artifactId) build()
Build aDependency
with the current state of this builder.classifier
(String classifier) exclusions
(Dependency.Exclusion... exclusions) exclusions
(Set<Dependency.Exclusion> exclusions) protected B
initialize
(Dependency dependency) scope
(DependencyScope scope) protected B
self()
version
(VersionReference version)
-
Constructor Details
-
Builder
-
-
Method Details
-
groupId
-
artifactId
-
version
-
scope
-
classifier
-
type
-
exclusions
-
exclusions
-
self
-
initialize
-
build
Build aDependency
with the current state of this builder.- Returns:
- a
Dependency
-