类 InfraApplicationExtension

java.lang.Object
cn.taketoday.gradle.dsl.InfraApplicationExtension

public class InfraApplicationExtension extends Object
Entry point to Infra Gradle DSL.
从以下版本开始:
4.0
作者:
Andy Wilkinson, Scott Frederick, Harry Yang
  • 字段详细资料

    • project

      private final org.gradle.api.Project project
    • mainClass

      private final org.gradle.api.provider.Property<String> mainClass
  • 构造器详细资料

    • InfraApplicationExtension

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

    • getMainClass

      public org.gradle.api.provider.Property<String> getMainClass()
      Returns the fully-qualified name of the application's main class.
      返回:
      the fully-qualified name of the application's main class
    • buildInfo

      public void buildInfo()
      Creates a new BuildInfo task named infraBuildInfo 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 infraWar or infraJar task.

    • buildInfo

      public void buildInfo(@Nullable org.gradle.api.Action<BuildInfo> configurer)
      Creates a new BuildInfo task named infraBuildInfo 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 infraWar or infraJar task.

      参数:
      configurer - the task configurer
    • configureBuildInfoTask

      private void configureBuildInfoTask(BuildInfo task)
    • determineMainSourceSetResourcesOutputDir

      private File determineMainSourceSetResourcesOutputDir()
    • determineArtifactBaseName

      @Nullable private String determineArtifactBaseName()
    • findArtifactTask

      @Nullable private org.gradle.jvm.tasks.Jar findArtifactTask()