类 InfraApplicationPlugin
java.lang.Object
cn.taketoday.gradle.plugin.InfraApplicationPlugin
- 所有已实现的接口:
org.gradle.api.Plugin<org.gradle.api.Project>
public class InfraApplicationPlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin for Infra.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Dave Syer, Andy Wilkinson, Danny Hyun, Scott Frederick, Harry Yang
-
字段概要
字段修饰符和类型字段说明static final StringThe coordinates(group:name:version)of theinfra-dependenciesbom.static final StringThe name of thedevelopmentOnlyconfiguration.static final StringThe name of theConfigurationthat contains Infra archives.static final StringThe name of the defaultInfraBuildImagetask.static final StringThe name of the defaultInfraJartask.(专用程序包) static final String(专用程序包) static final Stringprivate static final Stringstatic final StringThe name of the defaultInfraWartask.static final StringThe name of theproductionRuntimeClasspathconfiguration.static final StringThe name of theResolveMainClassNametask used to resolve a main class from the output of themainsource set.static final StringThe name of theResolveMainClassNametask used to resolve a main class from the output of thetestsource set then, if needed, the output of themainsource set. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapply(org.gradle.api.Project project) private voidcreateExtension(org.gradle.api.Project project) private org.gradle.api.artifacts.ConfigurationcreateInfraArchivesConfiguration(org.gradle.api.Project project) private voidregisterPluginActions(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration infraArchives) private voidprivate voidwithPluginClassOfAction(PluginApplicationAction action, Consumer<Class<? extends org.gradle.api.Plugin<? extends org.gradle.api.Project>>> consumer)
-
字段详细资料
-
INFRA_VERSION
-
INFRA_ARCHIVES_CONFIGURATION_NAME
The name of theConfigurationthat contains Infra archives.- 另请参阅:
-
INFRA_JAR_TASK_NAME
The name of the defaultInfraJartask.- 另请参阅:
-
INFRA_WAR_TASK_NAME
The name of the defaultInfraWartask.- 另请参阅:
-
INFRA_BUILD_IMAGE_TASK_NAME
The name of the defaultInfraBuildImagetask.- 另请参阅:
-
INFRA_RUN_TASK_NAME
- 另请参阅:
-
INFRA_TEST_RUN_TASK_NAME
- 另请参阅:
-
DEVELOPMENT_ONLY_CONFIGURATION_NAME
The name of thedevelopmentOnlyconfiguration.- 另请参阅:
-
PRODUCTION_RUNTIME_CLASSPATH_CONFIGURATION_NAME
The name of theproductionRuntimeClasspathconfiguration.- 另请参阅:
-
RESOLVE_MAIN_CLASS_NAME_TASK_NAME
The name of theResolveMainClassNametask used to resolve a main class from the output of themainsource set.- 另请参阅:
-
RESOLVE_TEST_MAIN_CLASS_NAME_TASK_NAME
The name of theResolveMainClassNametask used to resolve a main class from the output of thetestsource set then, if needed, the output of themainsource set.- 另请参阅:
-
BOM_COORDINATES
The coordinates(group:name:version)of theinfra-dependenciesbom.
-
-
构造器详细资料
-
InfraApplicationPlugin
public InfraApplicationPlugin()
-
-
方法详细资料
-
apply
public void apply(org.gradle.api.Project project) - 指定者:
apply在接口中org.gradle.api.Plugin<org.gradle.api.Project>
-
verifyGradleVersion
private void verifyGradleVersion() -
createExtension
private void createExtension(org.gradle.api.Project project) -
createInfraArchivesConfiguration
private org.gradle.api.artifacts.Configuration createInfraArchivesConfiguration(org.gradle.api.Project project) -
registerPluginActions
private void registerPluginActions(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration infraArchives) -
withPluginClassOfAction
private void withPluginClassOfAction(PluginApplicationAction action, Consumer<Class<? extends org.gradle.api.Plugin<? extends org.gradle.api.Project>>> consumer)
-