Jump to ratings and reviews
Rate this book

Making Java Groovy

Rate this book
Summary

Making Java Groovy is a practical handbook for developers who want to blend Groovy into their day-to-day work with Java. It starts by introducing the key differences between Java and Groovy—and how you can use them to your advantage. Then, it guides you step-by-step through realistic development challenges, from web applications to web services to desktop applications, and shows how Groovy makes them easier to put into production.

About this Book

You don't need the full force of Java when you're writing a build script, a simple system utility, or a lightweight web app—but that's where Groovy shines brightest. This elegant JVM-based dynamic language extends and simplifies Java so you can concentrate on the task at hand instead of managing minute details and unnecessary complexity.

Making Java Groov is a practical guide for developers who want to benefit from Groovy in their work with Java. It starts by introducing the key differences between Java and Groovy and how to use them to your advantage. Then, you'll focus on the situations you face every day, like consuming and creating RESTful web services, working with databases, and using the Spring framework. You'll also explore the great Groovy tools for build processes, testing, and deployment and learn how to write Groovy-based domain-specific languages that simplify Java development.

Written for developers familiar with Java. No Groovy experience required.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

What's Inside

About the Author

Ken Kousen is an independent consultant and trainer specializing in Spring, Hibernate, Groovy, and Grails.

Table of Contents

368 pages

3 people are currently reading
52 people want to read

About the author

Ken Kousen

8 books13 followers
I am the author of five books, four about software development and one about managing your manager. My technical books are "Kotlin Cookbook", "Modern Java Recipes", and "Gradle Recipes for Android", all from O'Reilly Media, and "Making Java Groovy" from Manning.

My latest book is called "Help Your Boss Help You" and is all about building a relationship with your manager that gets you what you want from your job when you want it. The book is intended for working professionals, defined as people who currently care more about doing their job well than moving through the ranks of people management, but who still have to deal with managers all the time.

I'm happy to try to answer any questions about any of my books here.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
7 (16%)
4 stars
28 (65%)
3 stars
7 (16%)
2 stars
1 (2%)
1 star
0 (0%)
Displaying 1 - 9 of 9 reviews
Profile Image for Palak Mathur.
32 reviews26 followers
November 20, 2013
#cross-posted from my blog
Making Java Groovy certainly makes Java groovy. It is a fantastic technical book that I have come across in long time with plenty of use cases. A technical book should talk less and do more and this is the book that does the same.

This book covers every aspect of programming covering lots things in development, build process and testing using lots of use cases that will interest you. The books repository on Github maintains the source code used in book. Most of the time, I tried to work on the development part on my own and only referred to the source code in the book in case I was stuck or was lacking any ideas to complete the code. The book attempts not to critique Java and evangelize Groovy. Neither it tries to get his readers abandon Java and start using Groovy for all their work. Instead the book attempts toward making Java easier and the developer more efficient.

Before reading the book, I knew that Groovy is a language that runs on JVM and is very close in syntax to Java and therefore is easy to learn. But after reading the book, I know that Groovy is not only easy to learn but also make Java easy to develop. For eg: I have worked extensively on Java and I know the pain it is to work with XMLs. Groovy makes working with XML easier. Groovy adds new capabilities to existing Java classes which makes it possible to write a better and cleaner code in Groovy avoiding all the boiler-plate that Java is infamous for. The book is divided into three parts: Part 1 is called Upto Speed with Groovy has a four chapters and is a great start for anyone who has never worked on Groovy before. Part 2 is called Groovy Tools that covers Build Proces and Testing. Part 3 is called Groovy in the Real World which deals with integrating Groovy with Spring Framework, Database access, RESTful web services and Building and testing Web applications using Groovlet and Grails.

Though the book is not written for complete beginners in Groovy but the book will be liked by beginners as well as it is essentially Groovy in Practice with a better name. :)

I would highly recommend this book to anyone who needs to work on Groovy.

My rating 5/5.
Profile Image for Zbyszek Sokolowski.
299 reviews16 followers
February 15, 2014
Initially I thought that this will be next similar book to Groovy in Action or its successor reGina. I was wrong, Making Java Groovy is different from said famous books. It of course shows that writing code in Groovy makes it more concise, less boilerplate. But it less concentrates on Groovy details but on what we can achieve using it in practice for instance while development of Spring apps and how abilities can be extended to achieve task which would be difficult to achieve otherwise for example in Java. More there are same introductions to famous frameworks like Gradle building tool, Spock test framework and famous Grails which is considered to be the best Web Java/Groovy framework on the whole market. This is a book for practitioners who wants to make their daily job easier.
23 reviews
January 1, 2013
At work I had to quickly pick up Groovy to get started on a Grails project. I mostly just googled, to look up a bit of syntax and Groovy-way of doing things. While It does indeed work to do it that way because Groovy is easy to pick up, I didn't really dig in deep enough to get any true appreciation. As I'm reading through this book, I'm quickly realizing how much I missed out on, the author takes you through real world examples to show you how to get the most of Groovy, where you can benefit integrating it in existing java projects.
Profile Image for Scott.
49 reviews
November 30, 2015
The book's motto is "Java is great for tools, libraries, and infrastructure. Groovy is great for everything else". Several examples are shown of how Groovy can simplify, and reduce code (and headaches) in your applications. XML Processing is a huge plus on Groovy's side.
Profile Image for Christopher Boudreau.
26 reviews1 follower
May 27, 2019
I bought this book to get me more familiaI with using Groovy to speed up development in a Java project and it did a great job of that! I plan on coding my Java projects in Groovy whenever I can now - I love how much I can get done in less code using Groovy.:)

I just wish there was an updated edition of this book to give me even more help now, in 2019.
Profile Image for Jeanne Boyarsky.
Author 28 books76 followers
July 5, 2014
I didn't write a review of “Making Java Groovy” the first time I read it because I didn't know what to make of it. Reading it again now, I know what the problem was. I didn't know enough Groovy to appreciate the examples. Appendix B does cover the Groovy language constructs methodically, but I didn't believe the text that suggest going to an appendix so early on in the book.

Since that initial read, I started using Groovy. Well kind of. I started writing Java code that I called Groovy. Then I slowly started writing more and more Groovy style code. Now I'm at the point where the examples make sense to me. I think the ideal point was to either re-read the book earlier or to actually read appendix B. Because now I know a lot of things in the book. Which I learned the hard way despite owning a perfectly good book on the topic. I did learn some new things though. And at least I was a Java developer; the book's target audience.

Anyway on to the book. Part covers how to write good Groovy code. Part focuses on common tasks like accessing xml. After each example is a “lessons learned” section to make sure you got the essential lessons. The author captures the Groovy tips appropriately including advice on using or not using dev and “parenthesis are optional until they aren't.”

The later part of the book covers integrating with other tools. I was entertained when the author said Maven has “an opinionated API”. I was disappointed that he didn't show you can put Groovy code inside a Maven POM.

I do recommend this book. Just remember to read Appendix B when you are told to!
Displaying 1 - 9 of 9 reviews

Can't find what you're looking for?

Get help and learn more about the design.