Gradle 2.0 Released
Written by Kay Ewbank   
Friday, 04 July 2014

A new version of project automation software Gradle has been released.

Gradle is described on its website as “build automation evolved”. The creators say it can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites or generated documentation.

Gradle takes the concepts of Apache Ant and Apache Maven and adds a Groovy-based domain-specific language (DSL) rather than using XML.

You can assemble declarative language elements into your own constructs, and the language elements provide build-by-convention support for Java, Groovy, OSGi, Web and Scala projects. It has also been adopted as the build engine in Google's Android Studio which should guarantee it a big user base for the future. 

It uses a directed acyclic graph ("DAG") to work out in which order tasks should be run. This is different from Maven, which uses lifecycles, and Ant which constructs targets based on a “depends-on” partial ordering. Because Gradle is aimed at large projects and multiple projects, it has support for incremental builds. This works out which parts of the build tree are up-to-date to avoid executing tasks that fit within the nodes that are up-to-date.

Gradle also supports partial builds. If you build a single subproject Gradle takes care of building all the subprojects that subproject depends on, and you can rebuild just the subprojects that depend on a particular subproject.

This version of Gradle is mainly aimed at Java, Groovy and Scala development and deployment, but more languages and project workflows will be added in the future.

Gradle 2.0 has a simplified codebase as the developers have removed a number of deprecated features and APIs. However, in a post on the Grade community forum, Gradleware engineer Luke Daley, says:

“if your build works with Gradle 1.12 and does not issue any deprecation warnings while building, it is extremely likely that your build will continue to work just fine with Gradle 2.0 and continue to work until Gradle 3.0.”

 gradlesq

 

More Information

Gradle.org

Release Notes 

Related Articles

Android Studio Graduates To Beta       

IntelliJ IDEA 13 Released       

A New Dawn - Google's Android IDE       

New Groovy       

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


Ai-Da's Portrait of Alan Turing At Auction
01/11/2024

Sotheby's Digital Art Day Action, now underway, features a large-scale portrait of  Alan Turing created by Ai-Da, the humanoid robot artist whose work, including this canvas, was exhibited at the [ ... ]



Save On edX Professional Certificates
16/10/2024

The idea of gaining a Professional Certificate is to demonstrate your possession of skills needed to succeed in today's most in-demand fields. News of 30% off edX Professional Certificates prompted us [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Friday, 04 July 2014 )