Convert maven project to gradle project

gradle maven

快速把 maven 项目转为 gradle 项目!

只需要在 maven 项目根目录运行

gradle init

就可以了!gradle 会自动根据 pom 文件生成 build.gradle 文件,经测试,包含多个子项目的 maven 项目也可以正确的转换为 gradle 项目!

插播一段官方文档:

Build Init Plugin:

The Gradle Build Init 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.

然后做什么?

卸载 maven 啊

brew uninstall maven

以后只用 gradle 和 sbt 了。


Original link:https://izhangzhihao.github.io//2018/01/26/Maven-sucks/

Search

    Table of Contents