Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Gradle as build tool

 
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Folks.
I have always used ANT to build Android projects, but I see that many projects move to Gradle.
Is it really worth? How about integration with IDEs (my concern is mainly about IntelliJ IDEA)? Why not Maven then?
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Android Studio (which is based on IntelliJ) supports the Gradle build system. Since Google works closely with the IntelliJ folks on that I would expect any work to trickle back to the main IntelliJ product sooner rather than later.

As to why not Maven, that could easily escalate in an is-Maven-good-or-bad flamewar :-) My impression is that the Android folks were looking for something flexible and customizable - not Maven's strongest suit.

http://tools.android.com/tech-docs/new-build-system/user-guide talks a little bit about the underlying motivation.
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf, very informative.
For me Gradle is something like 'step back' from Maven in direction of Ant (which looks simpler; at the same time Apache IVY is step onward to Maven, by providing dependency management).

Ulf Dittmer wrote:
As to why not Maven, that could easily escalate in an is-Maven-good-or-bad flamewar :-) My impression is that the Android folks were looking for something flexible and customizable - not Maven's strongest suit.


After some using of Gradle, I understand that Gradle config file is much smaller than Maven one. It's just a first impression, I will dig into it to know how it differs in flexible and customizable meanings.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic