Gradle和Maven的区别? [英] Difference between Gradle and Maven?

查看:372
本文介绍了Gradle和Maven的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gradle和Maven有什么不同?



我是Gradle的新手,但我曾经使用maven。



何时使用Gradle和何时使用Maven?

解决方案

您可以将Gradle看作Ant的善良, Maven放在一起减去了XML的噪音。使用groovy进行脚本编程是非常重要的。




  • Gradle给你提供了一些约定,但仍然可以让你轻松地覆盖它们。

  • Gradle构建文件不像Groovy中写的那么冗长。

  • 它为编写构建任务提供了非常好的DSL。

  • 有很多优秀的插件和充满活力的生态系统




使用Gradle和何时使用Maven?

创建java / groovy项目几乎无处不在。构建文件非常简洁。



Google选择Gradle作为Android SDK的新构建系统,以及像Spring,Hibernate,Grails,Groovy等成熟库已经在使用它为他们的构建提供动力,毫无疑问,Gradle正在成为事实上为Java生态系统构建系统。

What is the difference between Gradle and Maven?

I am new to Gradle but I used to work with maven.

When to use Gradle and When to use Maven ?

解决方案

You can think of Gradle as goodness of Ant and Maven put together minus the noise of XML. And scriptability with groovy is very big plus.

  • Gradle gives you conventions but still gives you power to override them easily.
  • Gradle build files are less verbose as they are written in groovy.
  • It provides very nice DSL for writing build tasks.
  • Has lot of good plugins and vibrant ecosystem

When to use Gradle and When to use Maven ?

Almost everywhere for creating java/groovy project. The build files are much terse.

With Google choosing Gradle as the new build system for Android SDK and mature libraries like Spring, Hibernate, Grails, Groovy etc. already using it to power their builds, there is no doubt that Gradle is becoming de-facto build system for the Java ecosystem.

这篇关于Gradle和Maven的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆