Class SpringBootExtension
java.lang.Object
org.springframework.boot.gradle.dsl.SpringBootExtension
Entry point to Spring Boot's Gradle DSL.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Scott Frederick
-
Constructor Summary
ConstructorDescriptionSpringBootExtension
(org.gradle.api.Project project) Creates a newSpringBootPluginExtension
that is associated with the givenproject
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a newBuildInfo
task namedbootBuildInfo
and configures the Java plugin'sclasses
task to depend upon it.void
Creates a newBuildInfo
task namedbootBuildInfo
and configures the Java plugin'sclasses
task to depend upon it.org.gradle.api.provider.Property<String>
Returns the fully-qualified name of the application's main class.
-
Constructor Details
-
SpringBootExtension
public SpringBootExtension(org.gradle.api.Project project) Creates a newSpringBootPluginExtension
that is associated with the givenproject
.- Parameters:
project
- the project
-
-
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
-
buildInfo
public void buildInfo()Creates a newBuildInfo
task namedbootBuildInfo
and configures the Java plugin'sclasses
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 thebootWar
orbootJar
task. -
buildInfo
Creates a newBuildInfo
task namedbootBuildInfo
and configures the Java plugin'sclasses
task to depend upon it. The task is passed to the givenconfigurer
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 thebootWar
orbootJar
task.- Parameters:
configurer
- the task configurer
-