u********s 发帖数: 1047 | 1 上学时候一直用maven, 上班以后要用gradle,这两东西具体区别在哪里? |
n*********u 发帖数: 1030 | 2 pretty much the same, I prefer gradle because I don't want to deal with XML. |
T*******x 发帖数: 8565 | 3 处理dependencies应该差不多。
但是gradle好像可以像ant一样指定一个local file system lib。
我觉得这个还是挺方便的。
比如你要做一个hadoop的java project,
lib一大堆,而且都是和你hadoop distribution相关的,
maven central repository里面的版本不一定合适。
这个时候最好指定local file system lib。
ant很容易做到,但是maven不容易。
我觉得gradle这一点和ant一样,比较方便。
maven plugin很不方便,这方面gradle应该强不少。
不过我没怎么用过gradle。
【在 u********s 的大作中提到】 : 上学时候一直用maven, 上班以后要用gradle,这两东西具体区别在哪里?
|
a*f 发帖数: 1790 | 4 local library文件可以做成local repository。我们有些project的library是放在局
域网的SVN的repository。
我们有一个project用gradle,其他project都用maven,整个building和testing
process都搭建好了,集成了AWS,JIRA和SVN,基本不需要改动,也很方便。
个人prefer XML,IDE对POM管理很方便。以前用过ANT,维护起来很花时间后来就废弃
了。building tool还是喜欢越简单越多人能马上上手越好。
【在 T*******x 的大作中提到】 : 处理dependencies应该差不多。 : 但是gradle好像可以像ant一样指定一个local file system lib。 : 我觉得这个还是挺方便的。 : 比如你要做一个hadoop的java project, : lib一大堆,而且都是和你hadoop distribution相关的, : maven central repository里面的版本不一定合适。 : 这个时候最好指定local file system lib。 : ant很容易做到,但是maven不容易。 : 我觉得gradle这一点和ant一样,比较方便。 : maven plugin很不方便,这方面gradle应该强不少。
|
s***o 发帖数: 2191 | 5 If you already use maven, it's fine to keep on using it. Otherwise, start
using gradle.
gradle is the conbination of the good parts from both maven and ant.
【在 u********s 的大作中提到】 : 上学时候一直用maven, 上班以后要用gradle,这两东西具体区别在哪里?
|