Class GradleDependency
java.lang.Object
io.spring.initializr.generator.buildsystem.Dependency
io.spring.initializr.generator.buildsystem.gradle.GradleDependency
Gradle-specific
Dependency
.- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a Gradle dependency.Nested classes/interfaces inherited from class io.spring.initializr.generator.buildsystem.Dependency
Dependency.Exclusion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GradleDependency.Builder
from
(Dependency dependency) Initialize a new dependencyGradleDependency.Builder
with the state of the specifiedDependency
.Return the configuration to use for the dependency.static GradleDependency.Builder
withCoordinates
(String groupId, String artifactId) Initialize a new dependencyGradleDependency.Builder
with the specified coordinates.Methods inherited from class io.spring.initializr.generator.buildsystem.Dependency
getArtifactId, getClassifier, getExclusions, getGroupId, getScope, getType, getVersion
-
Constructor Details
-
GradleDependency
-
-
Method Details
-
withCoordinates
Initialize a new dependencyGradleDependency.Builder
with the specified coordinates.- Parameters:
groupId
- the group ID of the dependencyartifactId
- the artifact ID of the dependency- Returns:
- a new builder
-
from
Initialize a new dependencyGradleDependency.Builder
with the state of the specifiedDependency
.- Parameters:
dependency
- the dependency to use to initialize the builder- Returns:
- a new builder initialized with the same state as the
dependency
-
getConfiguration
Return the configuration to use for the dependency. If not set, a default configuration is inferred from the scope of the dependency.- Returns:
- the custom configuration name to use or
null
-