public static final class SmithyBuildConfig.Builder extends java.lang.Object implements SmithyBuilder<SmithyBuildConfig>
SmithyBuildConfig
.Modifier and Type | Method and Description |
---|---|
SmithyBuildConfig |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
SmithyBuildConfig.Builder |
ignoreMissingPlugins(boolean ignoreMissingPlugins)
Logs instead of failing when a plugin can't be found by name.
|
SmithyBuildConfig.Builder |
imports(java.util.Collection<java.lang.String> imports)
Replaces imports on the config.
|
SmithyBuildConfig.Builder |
load(java.nio.file.Path config)
Loads and merges the config file into the builder.
|
SmithyBuildConfig.Builder |
merge(SmithyBuildConfig config)
Updates this configuration with the configuration of another file.
|
SmithyBuildConfig.Builder |
outputDirectory(java.lang.String outputDirectory)
Set a directory where the build artifacts are written.
|
SmithyBuildConfig.Builder |
plugins(java.util.Map<java.lang.String,ObjectNode> plugins)
Replaces plugins on the config.
|
SmithyBuildConfig.Builder |
projections(java.util.Map<java.lang.String,ProjectionConfig> projections)
Replaces projections on the config.
|
SmithyBuildConfig.Builder |
version(java.lang.String version)
Sets the builder config file version.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public SmithyBuildConfig build()
SmithyBuilder
build
in interface SmithyBuilder<SmithyBuildConfig>
public SmithyBuildConfig.Builder version(java.lang.String version)
version
- Version to set.public SmithyBuildConfig.Builder load(java.nio.file.Path config)
config
- Config file to load, parse, and merge.public SmithyBuildConfig.Builder merge(SmithyBuildConfig config)
config
- Config to update with.public SmithyBuildConfig.Builder outputDirectory(java.lang.String outputDirectory)
outputDirectory
- Directory where artifacts are written.public SmithyBuildConfig.Builder imports(java.util.Collection<java.lang.String> imports)
imports
- Imports to set.public SmithyBuildConfig.Builder projections(java.util.Map<java.lang.String,ProjectionConfig> projections)
projections
- Projections to set.public SmithyBuildConfig.Builder plugins(java.util.Map<java.lang.String,ObjectNode> plugins)
plugins
- Plugins to set.public SmithyBuildConfig.Builder ignoreMissingPlugins(boolean ignoreMissingPlugins)
ignoreMissingPlugins
- Set to true to ignore missing plugins on the classpath.