本文的目的是将pom.xml转换成buile.gradle文件
首先确定以下几点:
maven的pom.xml文件正确,
你的gradle版本在gradle 2.0以上
那接下来就简单了:
一个命令:gradle init --type pom
aaaa@fang:~/DownLoad/未命名文件夹$ gradle init --type pom
:wrapper
:init
Maven to Gradle conversion is an incubating feature.
BUILD SUCCESSFUL
Total time: 1.506 secs
这是开始状态:
这是展示结果: