Chapter 22. Standard Gradle plugins 标准 Gradle 插件

    这些插件添加各种语言可以被编译为在JVM中执行的支持。

    Table 22.1. Language plugins


























    22.2. Incubating language plugins 孵化中的语言插件

    Table 22.2. Language plugins




































    Plugin IdAutomatically appliesWorks withDescription


    --

    Adds native assembly language capabilities to a project.




    c

    --

    Adds C source compilation capabilities to a project.




    --

    Adds C++ source compilation capabilities to a project.




    objective-c

    --

    Adds Objective-C source compilation capabilities to a project.




    --

    Adds Objective-C++ source compilation capabilities to a project.




    windows-resources

    --

    Adds support for including Windows resources in native binaries.


    这些插件提供一些集成各种运行技术。

    Table 22.3. Integration plugins




































    22.4. Incubating integration plugins 孵化中的集成插件

    这些插件提供一些集成各种运行技术。

    Table 22.4. Incubating integration plugins


























    Plugin IdAutomatically appliesWorks withDescription


    --

    Adds support for building ZIP and TAR distributions.




    java-library-distribution

    java, distribution-

    Adds support for building ZIP and TAR distributions for a Java library.




    -java, war

    This plugin provides a new DSL to support publishing artifacts to Ivy repositories, which improves on the existing DSL.




    maven-publish

    -java, war

    This plugin provides a new DSL to support publishing artifacts to Maven repositories, which improves on the existing DSL.


    Table 22.5. Software development plugins







































































    22.6. Incubating software development plugins 孵化中的软件开发插件

    Table 22.6. Software development plugins














































    Plugin IdAutomatically appliesWorks withDescription


    reporting-base-

    Generates build dashboard report.




    build-init

    wrapper-

    Adds support for initializing a new Gradle build. Handles converting a Maven build to a Gradle build.




    --

    Adds support for running CUnit tests.




    reporting-basejava

    Provides integration with the
    JaCoCo
    code coverage library for Java.




    -java-base, java, jacoco

    Provides integration with the
    Sonar
    code quality platform. Supersedes the plugin.




    visual-studio

    -native language plugins

    Adds integration with Visual Studio.




    --

    Adds a Wrapper task for generating Gradle wrapper files.




    java

    Assists with development of Gradle plugins by providing standard plugin build configuration and validation.


    这些插件形成基本构建块,用来提供给其他插件组装。它们可以被使用在你的构建文件,并列出的完整性。然而,要注意他们还没有考虑 Gradle 的公共API的一部分。因此,这些插件都不能列在用户指南文件中。你可以参考他们的API文档来了解他们。

    Table 22.7. Base plugins



















    22.8. Third party plugins 第三方插件

    可以从这里看到外部的插件