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 adds its output as asource directoryof the main source set'sresources.voidCreates a newBuildInfotask namedbootBuildInfoand adds its output as asource directoryof the main source set'sresources.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
-
buildInfo
public void buildInfo()Creates a newBuildInfotask namedbootBuildInfoand adds its output as asource directoryof the main source set'sresources.By default, the task's project artifact will be the archive base name of the
bootWarorbootJartask. -
buildInfo
Creates a newBuildInfotask namedbootBuildInfoand adds its output as asource directoryof the main source set'sresources. The task is passed to the givenconfigurerfor further configuration.By default, the task's project artifact will be the archive base name of the
bootWarorbootJartask.- Parameters:
configurer- the task configurer
-