public class BootBuildImage
extends org.gradle.api.DefaultTask
Task for bundling an application into an OCI image using a
buildpack.| Constructor and Description |
|---|
BootBuildImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
environment(java.util.Map<java.lang.String,java.lang.String> entries)
Adds entries to the environment that will be used when building the image.
|
void |
environment(java.lang.String name,
java.lang.String value)
Add an entry to the environment that will be used when building the image.
|
java.lang.String |
getBuilder()
Returns the builder that will be used to build the image.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
Returns the environment that will be used when building the image.
|
java.lang.String |
getImageName()
Returns the name of the image that will be built.
|
org.gradle.api.file.RegularFileProperty |
getJar()
Returns the property for the jar file from which the image will be built.
|
boolean |
isCleanCache()
Returns whether caches should be cleaned before packaging.
|
boolean |
isVerboseLogging()
Whether verbose logging should be enabled while building the image.
|
void |
setBuilder(java.lang.String builder)
Sets the builder that will be used to build the image.
|
void |
setCleanCache(boolean cleanCache)
Sets whether caches should be cleaned before packaging.
|
void |
setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the environment that will be used when building the image.
|
void |
setImageName(java.lang.String imageName)
Sets the name of the image that will be built.
|
void |
setVerboseLogging(boolean verboseLogging)
Sets whether verbose logging should be enabled while building the image.
|
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService@Input public org.gradle.api.file.RegularFileProperty getJar()
@Input @Optional public java.lang.String getImageName()
null, the name will
be derived from the Project's name and
version.public void setImageName(java.lang.String imageName)
imageName - name of the image@Input @Optional public java.lang.String getBuilder()
null, the
default builder will be used.public void setBuilder(java.lang.String builder)
builder - the builder@Input public java.util.Map<java.lang.String,java.lang.String> getEnvironment()
public void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
environment - the environmentpublic void environment(java.lang.String name,
java.lang.String value)
name - the name of the entryvalue - the value of the entrypublic void environment(java.util.Map<java.lang.String,java.lang.String> entries)
entries - the entries to add to the environment@Input public boolean isCleanCache()
public void setCleanCache(boolean cleanCache)
cleanCache - true to clean the cache, otherwise false.@Input public boolean isVerboseLogging()
public void setVerboseLogging(boolean verboseLogging)
verboseLogging - true to enable verbose logging, otherwise
false.