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.
|
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, versionpublic 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 parentpublic MavenBuildSettings.Builder packaging(String packaging)
packaging - the packagingPackagingpublic 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.BuilderBuildSettings with the current state of this builder.build in class BuildSettings.Builder<MavenBuildSettings.Builder>BuildSettingsCopyright © 2021 Pivotal Software, Inc.. All rights reserved.