public class SpringBootExtension
extends java.lang.Object
| Constructor and Description |
|---|
SpringBootExtension(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(Action<BuildInfo> configurer)
Creates a new
BuildInfo task named bootBuildInfo and configures the
Java plugin's classes task to depend upon it. |
java.lang.String |
getMainClassName()
Returns the main class name of the application.
|
void |
setMainClassName(java.lang.String mainClassName)
Sets the main class name of the application.
|
public SpringBootExtension(Project project)
SpringBootPluginExtension that is associated with the given
project.project - the projectpublic java.lang.String getMainClassName()
public void setMainClassName(java.lang.String mainClassName)
mainClassName - the name of the application's main classpublic 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(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