public static class MavenBuildSettings.Builder extends BuildSettings.Builder<MavenBuildSettings.Builder>
BuildSettings
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MavenBuildSettings |
build()
Build a
BuildSettings with the current state of this builder. |
MavenBuildSettings.Builder |
coordinates(String groupId,
String artifactId)
Set the coordinates of the project.
|
MavenBuildSettings.Builder |
defaultGoal(String defaultGoal)
Set the default goal or phase to execute if none is given.
|
MavenBuildSettings.Builder |
description(String description)
Set a human readable description of the project.
|
MavenBuildSettings.Builder |
developers(MavenDeveloper... developers)
Set the developers of the project.
|
MavenBuildSettings.Builder |
finalName(String finalName)
Set the name of the bundled project when it is finally built.
|
MavenBuildSettings.Builder |
licenses(MavenLicense... licenses)
Set the licenses of the project.
|
MavenBuildSettings.Builder |
name(String name)
Set the name of the project.
|
MavenBuildSettings.Builder |
packaging(String packaging)
Set the packaging of the project.
|
MavenBuildSettings.Builder |
parent(String groupId,
String artifactId,
String version)
Set the coordinates of the parent, to be resolved against the repository.
|
MavenBuildSettings.Builder |
parent(String groupId,
String artifactId,
String version,
String relativePath)
Set the coordinates of the parent and its relative path.
|
MavenBuildSettings.Builder |
scm(Consumer<MavenScm.Builder> scm)
Customize the
scm section using the specified consumer. |
MavenBuildSettings.Builder |
sourceDirectory(String sourceDirectory)
Set the the location of main source code.
|
MavenBuildSettings.Builder |
testSourceDirectory(String testSourceDirectory)
Set the the location of test source code.
|
artifact, group, self, version
public MavenBuildSettings.Builder coordinates(String groupId, String artifactId)
groupId
- the group ID of the projectartifactId
- the artifact ID of the projectpublic MavenBuildSettings.Builder parent(String groupId, String artifactId, String version)
groupId
- the groupID of the parentartifactId
- the artifactID of the parentversion
- the version of the parentparent(String, String, String, String)
public MavenBuildSettings.Builder parent(String groupId, String artifactId, String version, String relativePath)
null
to let Maven search the parent using local file search,
for instance pom.xml
in the parent directory. It can also be set to an
empty string to specify that it should be resolved against the repository.groupId
- the groupID of the parentartifactId
- the artifactID of the parentversion
- the version of the parentrelativePath
- the relative pathpublic MavenBuildSettings.Builder packaging(String packaging)
packaging
- the packagingPackaging
public MavenBuildSettings.Builder name(String name)
name
- the name of the projectpublic MavenBuildSettings.Builder description(String description)
description
- the description of the projectpublic MavenBuildSettings.Builder licenses(MavenLicense... licenses)
licenses
- the licenses associated with the projectpublic MavenBuildSettings.Builder developers(MavenDeveloper... developers)
developers
- the developers associated with the projectpublic MavenBuildSettings.Builder scm(Consumer<MavenScm.Builder> scm)
scm
section using the specified consumer.scm
- a consumer of the current version control sectionpublic MavenBuildSettings.Builder finalName(String finalName)
finalName
- the final name of the artifactpublic MavenBuildSettings.Builder defaultGoal(String defaultGoal)
defaultGoal
- the default goal or null
to use the defaultpublic MavenBuildSettings.Builder sourceDirectory(String sourceDirectory)
${basedir}
.sourceDirectory
- the location of main source code or null
to use
the defaultpublic MavenBuildSettings.Builder testSourceDirectory(String testSourceDirectory)
${basedir}
.testSourceDirectory
- the location of test source code or null
to
use the defaultpublic MavenBuildSettings build()
BuildSettings.Builder
BuildSettings
with the current state of this builder.build
in class BuildSettings.Builder<MavenBuildSettings.Builder>
BuildSettings
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.