Over a million developers have joined DZone.

Book Review: Gradle: Beyond the Basics

· Java Zone

Navigate the Maze of the End-User Experience and pick up this APM Essential guide, brought to you in partnership with CA Technologies

Gradle: Beyond the Basics is the "sequel" to Building and Testing with Gradle. According to the Gradle Books page, a third book in this series will be a "set of recipes that uses as the demonstrative tool for enterprise build automation." I have not read the first book, but did read the short Gradle: Beyond the Basics and review that here.

Gradle: Beyond the Basics, as its name implies, assumes that the reader is already aware of "Gradle basics." The book provides no introduction to Gradle and assumes at least minimal knowledge of some related languages and tools as well (GroovyAntMaven).

Gradle: Beyond the Basics is a very short book of four chapters and 67 pages of substantive content (not counting 8 pages of cover, Table of Contents, and Preface or the 3 pages of Afterword, advertisements, biography, and colophon). The subjects covered in the book are covered well with a lucid and easily understood writing style. The combination of the short length of the book and of the easy reading style make this book a quick read.

As its subtitle ("Customizing Next-Generation Builds") suggests, Gradle: Beyond the Basics focuses on customizing Gradle builds. The "Table of Contents" listed on the O'Reilly page on Gradle: Beyond the Basicssummarizes the specific covered areas of this customization: file operationscustom plug-insbuild hooks (andRules), and dependency management.

I particularly liked Chapter 2 of the book Gradle: Beyond the Basics and the way it demonstrated writing a plugin by first starting with added functionality in the main build and then refactoring that code into a plugin. I also especially appreciated the Liquibase-based examples used in this chapter.

Although I have not read the first book (Building and Testing with Gradle), the Amazon.com reviews of that book and its advertised length (116 pages) make me think these two books would have worked better as a single book. I'm guessing that the reasons they were written as two separate books are those expressed on theGradle Books page (different aims) and to enable quicker publication of the first one.

Although I found Gradle: Beyond the Basics to be interesting and a useful read, I find it difficult to recommend purchase of it at a list price over $20 (USD) because of the amount of information covered and because some of the topics that are covered are also covered well in the Gradle User Guide (PDF). That stated, the book does have some low-level details that I have not seen in the User Guide and even subjects covered in the User Guide are covered with different perspective and approach in the book. The Amazon.com Marketplace currently has other options for purchasing the book for under $10 (plus shipping and handling) and this might be more appealing for purchasing this short book. The ebook/Kindle version of Gradle: Beyond the Basics might also be a cost effective choice.

Thrive in the application economy with an APM model that is strategic. Be E.P.I.C. with CA APM.  Brought to you in partnership with CA Technologies.

Topics:

Published at DZone with permission of Dustin Marx, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}