Gradle Build Setup Plugin

Build Setup Plugin

The Gradle Build Setup plugin can be used to bootstrap the process of creating a new Gradle build. It supports creating brand new projects of different types as well as converting existing builds (e.g. An Apache Maven build) to be Gradle builds.

Gradle plugins typically need to be applied to a project before they can be used (see Section 21.1, “Applying plugins”). The Build Setup plugin is an automatically applied plugin, which means you do not need to apply it explicitly. To use the plugin, simply execute the task named setupBuildwhere you would like to create the Gradle build. There is no need to create a “stub” build.gradle file in order to apply the plugin.

It also leverages the wrapper task from the Wrapper plugin (see Chapter 48, Wrapper Plugin), which means that the Gradle Wrapper will also be installed into the project.

Gradle Build Setup插件可以让你启动一个新的Gradle工程。该插件是自动应用,所以不需要你显示的apply。使用它是要简单的执行gradle setupBuild,你都不需要准备build.gradle文件。

Build Setup Type

三种:java-library pom basic

默认是basic

使用方式 gradle setupBuild --type java-library

pom方式会自动去寻找pom.xml文件,然后转换成为Gradle项目。

更多具体内容请参考:http://www.gradle.org/docs/1.7/userguide/build_setup_plugin.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值