public class SpringBootExtension
extends java.lang.Object
Constructor and Description |
---|
SpringBootExtension(org.gradle.api.Project project)
Creates a new
SpringBootPluginExtension that is associated with the given
project . |
Modifier and Type | Method and Description |
---|---|
void |
buildInfo()
Creates a new
BuildInfo task named bootBuildInfo and configures the
Java plugin's classes task to depend upon it. |
void |
buildInfo(org.gradle.api.Action<BuildInfo> configurer)
Creates a new
BuildInfo task named bootBuildInfo and configures the
Java plugin's classes task to depend upon it. |
org.gradle.api.provider.Property<java.lang.String> |
getMainClass()
Returns the fully-qualified name of the application's main class.
|
public SpringBootExtension(org.gradle.api.Project project)
SpringBootPluginExtension
that is associated with the given
project
.project
- the projectpublic org.gradle.api.provider.Property<java.lang.String> getMainClass()
public void buildInfo()
BuildInfo
task named bootBuildInfo
and configures the
Java plugin's classes
task to depend upon it.
By default, the task's destination dir will be a directory named META-INF
beneath the main source set's resources output directory, and the task's project
artifact will be the base name of the bootWar
or bootJar
task.
public void buildInfo(org.gradle.api.Action<BuildInfo> configurer)
BuildInfo
task named bootBuildInfo
and configures the
Java plugin's classes
task to depend upon it. The task is passed to the
given configurer
for further configuration.
By default, the task's destination dir will be a directory named META-INF
beneath the main source set's resources output directory, and the task's project
artifact will be the base name of the bootWar
or bootJar
task.
configurer
- the task configurer