类 InfraApplicationExtension
java.lang.Object
cn.taketoday.gradle.dsl.InfraApplicationExtension
Entry point to Infra Gradle DSL.
- 从以下版本开始:
- 4.0
- 作者:
- Andy Wilkinson, Scott Frederick, Harry Yang
-
字段概要
字段 -
构造器概要
构造器构造器说明InfraApplicationExtension(org.gradle.api.Project project) Creates a newInfraApplicationExtensionthat is associated with the givenproject. -
方法概要
修饰符和类型方法说明voidCreates a newBuildInfotask namedinfraBuildInfoand configures the Java plugin'sclassestask to depend upon it.voidCreates a newBuildInfotask namedinfraBuildInfoand configures the Java plugin'sclassestask to depend upon it.private voidprivate Stringprivate Fileprivate org.gradle.jvm.tasks.Jarorg.gradle.api.provider.Property<String>Returns the fully-qualified name of the application's main class.
-
字段详细资料
-
project
private final org.gradle.api.Project project -
mainClass
-
-
构造器详细资料
-
InfraApplicationExtension
public InfraApplicationExtension(org.gradle.api.Project project) Creates a newInfraApplicationExtensionthat 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
-
buildInfo
public void buildInfo()Creates a newBuildInfotask namedinfraBuildInfoand 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 theinfraWarorinfraJartask. -
buildInfo
Creates a newBuildInfotask namedinfraBuildInfoand 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 theinfraWarorinfraJartask.- 参数:
configurer- the task configurer
-
configureBuildInfoTask
-
determineMainSourceSetResourcesOutputDir
-
determineArtifactBaseName
-
findArtifactTask
@Nullable private org.gradle.jvm.tasks.Jar findArtifactTask()
-