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
ConstructorsConstructorDescriptionSpringBootExtension(Project project) Creates a newSpringBootPluginExtensionthat is associated with the givenproject. - 
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a newBuildInfotask namedbootBuildInfoand configures the Java plugin'sclassestask to depend upon it.voidCreates a newBuildInfotask namedbootBuildInfoand configures the Java plugin'sclassestask to depend upon it.Returns the fully-qualified name of the application's main class. 
- 
Constructor Details
- 
SpringBootExtension
Creates a newSpringBootPluginExtensionthat 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 newBuildInfotask namedbootBuildInfoand configures the Java plugin'sclassestask to depend upon it.By default, the task's destination dir will be a directory named
META-INFbeneath the main source set's resources output directory, and the task's project artifact will be the base name of thebootWarorbootJartask. - 
buildInfo
Creates a newBuildInfotask namedbootBuildInfoand configures the Java plugin'sclassestask to depend upon it. The task is passed to the givenconfigurerfor further configuration.By default, the task's destination dir will be a directory named
META-INFbeneath the main source set's resources output directory, and the task's project artifact will be the base name of thebootWarorbootJartask.- Parameters:
 configurer- the task configurer
 
 -