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.
|
java.lang.String |
getMainClassName()
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
getMainClass(). |
void |
setMainClassName(java.lang.String mainClassName)
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
getMainClass() and
Property.set(Object) |
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()
@Deprecated @ReplacedBy(value="mainClass") public java.lang.String getMainClassName()
getMainClass().@Deprecated public void setMainClassName(java.lang.String mainClassName)
getMainClass() and
Property.set(Object)mainClassName - the fully-qualified 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(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