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 SummaryConstructorsConstructorDescriptionSpringBootExtension(Project project) Creates a newSpringBootPluginExtensionthat is associated with the givenproject.
- 
Method SummaryModifier 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- 
SpringBootExtensionCreates a newSpringBootPluginExtensionthat is associated with the givenproject.- Parameters:
- project- the project
 
 
- 
- 
Method Details- 
getMainClass
- 
buildInfopublic 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.
- 
buildInfoCreates 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
 
 
-