Why Gradle?
 |
These two projects do the same thing |
|
|
You can easily build a gradle hybrid project by cloning down https://github.com/nickmcdowall/JavaAndGroovy/. This project also demonstrates
WHY gradle is a great choice for new projects.
- It doesnt break maven conventions
- It isn't XML
- Its builds the exact same project in 10% of the space.
But it doesnt stop there. Now lets look at the build....
 |
Same thing: the Gradle output is clear. Albeit 3 seconds slower. |
| |
|
|
There might be a little extra runtime overhead with gradle (6 sec vs 3 sec for maven), im not sure. I don't really care. But I do like the readability. But one thing I like about maven is the unit test summaries. What if I want the unit test output? I can easily just add whatever groovy candy I want in snippets, as shown here :
http://stackoverflow.com/questions/3963708/gradle-how-to-display-test-results-in-the-console-in-real-time.
Gradle for maven users
To build a gradle project:
gradle build
To create an eclipse project:
Add apply plugin: 'eclipse' to the top of your build.gradle
Run gradle eclipse
No comments:
Post a Comment