类 SpringBootExtension
java.lang.Object
org.springframework.boot.gradle.dsl.SpringBootExtension
Entry point to Spring Boot's Gradle DSL.
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Scott Frederick
-
构造器概要
构造器构造器说明SpringBootExtension
(Project project) Creates a newSpringBootPluginExtension
that is associated with the givenproject
. -
方法概要
修饰符和类型方法说明void
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.Returns the fully-qualified name of the application's main class.
-
构造器详细资料
-
SpringBootExtension
Creates a newSpringBootPluginExtension
that is associated with the givenproject
.- 参数:
project
- the project
-
-
方法详细资料
-
getMainClass
Returns the fully-qualified name of the application's main class.- 返回:
- the fully-qualified name of the application's main class
- 从以下版本开始:
- 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.- 参数:
configurer
- the task configurer
-