This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes from ant, maven to gradle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "from ant, maven to gradle" Watch "from ant, maven to gradle" New topic
Author

from ant, maven to gradle

Ashley Riot
Greenhorn

Joined: Nov 16, 2011
Posts: 21
Does mastering the technologies ant or maven help in learning gradle? Is it worth migrating existing applications build system to gradle, or is it better to use it for new projects?
Hubert Klein Ikkink
author
Greenhorn

Joined: Jan 10, 2013
Posts: 13

Hi Ashley,

Gradle takes ideas from Ant and Maven and presents a new build tool/language to create better builds. For example we can re-use Ant task and even complete Ant build files in a Gradle build. This way it is easy to migrate, because you start with importing the Ant build file and gradually change or enhance your build with Gradle tasks and plugins.
Gradle incorporates the convention-over-configuration project structure of Maven out of the box. So if you have defined a Java project in Maven using Maven's project layout you can immediately use Gradle. Gradle does add extra configuration options if needed, but if you stick to the conventions you don't have to do much. Gradle also can use Maven repositories for dependencies, so they can be reused.

So if you already know Maven or Ant it can help you to learn Gradle, because you already have seen some of the concepts that are used in Gradle. But you don't need to, you can learn and use Gradle without the extra "baggage" of Ant and Maven.

If you are now using Ant I would migrate to Gradle, because you will be able to write better maintainable build files.

If you use Maven on a project and the project is straightforward and doesn't change then migrating will not add much. But if you are stretching Maven's possibilities and have to rely on plugins to customize your build, you are better off on migrating to Gradle. There is even a third-party tool maven2gradle, which can help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: from ant, maven to gradle
 
Similar Threads
How to mavenize a project
whats the diff. b/w ANT and MAVEN?
Spring classes not resolved even with libs added
Using multiple IDEs
Why Maven?