public class DependencyBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.model.Dependency |
build()
Builds the Dependency instance
|
static org.apache.maven.model.Dependency |
dependencyWith(String groupId,
String artifactId,
String version)
Convenience builder method
|
static org.apache.maven.model.Dependency |
dependencyWith(String groupId,
String artifactId,
String version,
String type,
String classifier,
String scope)
Convenience builder method
|
static DependencyBuilder |
newBuilder()
Creates a new instance of the builder
|
DependencyBuilder |
withArtifactId(String artifactId)
Passes artifactId to the builder
|
DependencyBuilder |
withClassifier(String classifier)
Passes classifier to the builder
|
DependencyBuilder |
withGroupId(String groupId)
Passes groupId to the builder
|
DependencyBuilder |
withOptional(boolean optional)
Passes optional to the builder as boolean
|
DependencyBuilder |
withOptional(String optional)
Passes optional to the builder as String
|
DependencyBuilder |
withScope(String scope)
Passes scope to the builder
|
DependencyBuilder |
withType(String type)
Passes type to the builder
|
DependencyBuilder |
withVersion(String version)
Passes version to the builder
|
public DependencyBuilder withGroupId(String groupId)
groupId - given groupIdpublic DependencyBuilder withArtifactId(String artifactId)
artifactId - given artifactIdpublic DependencyBuilder withVersion(String version)
version - given versionpublic DependencyBuilder withType(String type)
type - given typepublic DependencyBuilder withClassifier(String classifier)
classifier - given classifierpublic DependencyBuilder withScope(String scope)
scope - given scopepublic DependencyBuilder withOptional(String optional)
optional - given optional as Stringpublic DependencyBuilder withOptional(boolean optional)
optional - given optional as booleanpublic static DependencyBuilder newBuilder()
public static org.apache.maven.model.Dependency dependencyWith(String groupId, String artifactId, String version)
public static org.apache.maven.model.Dependency dependencyWith(String groupId, String artifactId, String version, String type, String classifier, String scope)
public org.apache.maven.model.Dependency build()
Copyright © 2008–2022 MojoHaus. All rights reserved.