类 SpringBootExtension

java.lang.Object
org.springframework.boot.gradle.dsl.SpringBootExtension

public class SpringBootExtension extends Object
Entry point to Spring Boot's Gradle DSL.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson, Scott Frederick
  • 构造器详细资料

    • SpringBootExtension

      public SpringBootExtension(Project project)
      Creates a new SpringBootPluginExtension that is associated with the given project.
      参数:
      project - the project
  • 方法详细资料

    • getMainClass

      public Property<String> 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 new BuildInfo task named bootBuildInfo and configures the Java plugin's classes 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 the bootWar or bootJar task.

    • buildInfo

      public void buildInfo(Action<BuildInfo> configurer)
      Creates a new BuildInfo task named bootBuildInfo and configures the Java plugin's classes task to depend upon it. The task is passed to the given configurer 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 the bootWar or bootJar task.

      参数:
      configurer - the task configurer