Interface BootArchive
- All Superinterfaces:
Comparable<org.gradle.api.Task>
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
public interface BootArchive
extends org.gradle.api.Task
A Spring Boot "fat" archive task.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds files to the classpath to include in the archive.org.gradle.api.file.FileCollection
Returns the classpath that will be included in the archive.Returns theLaunchScriptConfiguration
that will control the script that is prepended to the archive.org.gradle.api.provider.Property<String>
Returns the fully-qualified name of the application's main class.void
Configures the archive to have a prepended launch script.void
launchScript
(org.gradle.api.Action<LaunchScriptConfiguration> action) Configures the archive to have a prepended launch script, customizing its configuration using the givenaction
.void
requiresUnpack
(String... patterns) Adds Ant-style patterns that identify files that must be unpacked from the archive when it is launched.void
requiresUnpack
(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec) Adds a spec that identifies files that must be unpacked from the archive when it is launched.void
setClasspath
(Object classpath) Sets the classpath to include in the archive.void
setClasspath
(org.gradle.api.file.FileCollection classpath) Sets the classpath to include in the archive.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensions
Methods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Method Details
-
getMainClass
Returns the fully-qualified name of the application's main class.- Returns:
- the fully-qualified name of the application's main class
- Since:
- 2.4.0
-
requiresUnpack
Adds Ant-style patterns that identify files that must be unpacked from the archive when it is launched.- Parameters:
patterns
- the patterns
-
requiresUnpack
void requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec) Adds a spec that identifies files that must be unpacked from the archive when it is launched.- Parameters:
spec
- the spec
-
getLaunchScript
Returns theLaunchScriptConfiguration
that will control the script that is prepended to the archive.- Returns:
- the launch script configuration, or
null
if the launch script has not been configured.
-
launchScript
void launchScript()Configures the archive to have a prepended launch script. -
launchScript
Configures the archive to have a prepended launch script, customizing its configuration using the givenaction
.- Parameters:
action
- the action to apply
-
getClasspath
@Optional @Classpath org.gradle.api.file.FileCollection getClasspath()Returns the classpath that will be included in the archive.- Returns:
- the classpath
-
classpath
Adds files to the classpath to include in the archive. The givenclasspath
is evaluated as perProject.files(Object...)
.- Parameters:
classpath
- the additions to the classpath
-
setClasspath
Sets the classpath to include in the archive. The givenclasspath
is evaluated as perProject.files(Object...)
.- Parameters:
classpath
- the classpath- Since:
- 2.0.7
-
setClasspath
void setClasspath(org.gradle.api.file.FileCollection classpath) Sets the classpath to include in the archive.- Parameters:
classpath
- the classpath- Since:
- 2.0.7
-