cta quote button

Best Groovy Books that You Should Have on Your Bookshelf

Read More

How Much Does It Cost to Hire Web Developers in Ukraine?

Our pricing is completely transparent: you pay your engineers’ salaries and a flat monthly fee for our services. No hidden charges.

Read More

1. Programming Groovy: Dynamic Productivity for the Java Developer (Pragmatic Programmers) (2008)

The strength of Java is no longer in the language itself; it’s in the Java Platform (the JVM, JDK, and rich frameworks and libraries). But recently, the industry has turned to dynamic languages for increased productivity and speed to market.

Groovy is one of a new breed of dynamic languages that run on the Java platform. You can use these new languages on the JVM and intermix them with your existing Java code. You can leverage your Java investments while benefiting from advanced features including true Closures, Meta Programming, the ability to create internal DSLs, and a higher level of abstraction.

If you’re an experienced Java developer, Programming Groovy will help you learn the necessary fundamentals of programming in Groovy. You’ll see how to use Groovy to do advanced programming including using Meta Programming, Builders, Unit Testing with Mock objects, processing XML, working with Databases and creating your own Domain-Specific Languages (DSLs).

Author(s): Venkat Subramaniam

2. Programming Groovy 2: Dynamic Productivity for the Java Developer (Pragmatic Bookshelf) (2013)

Groovy brings you the best of both worlds: a flexible, highly productive, agile, dynamic language that runs on the rich framework of the Java Platform. Groovy preserves the Java semantics and extends the JDK to give you true dynamic language capabilities. Programming Groovy 2 will help you, the experienced Java developer, learn and take advantage of the latest version of this rich dynamic language. You’ll go from the basics of Groovy to the latest advances in the language, including options for type checking, tail-call and memoization optimizations, compile time metaprogramming, and fluent interfaces to create DSLs.

You don’t have to leave the rich Java Platform to take advantage of Groovy. Groovy preserves Java’s semantics and extends the JDK, so programming in Groovy feels like the Java language has been augmented; it’s like working with a lighter, more elegant Java. If you’re an experienced Java developer who wants to learn how Groovy works, you’ll find exactly what you need in this book.

You’ll start with the fundamentals of programming in Groovy and how it works with Java, and then you’ll explore advanced concepts such as unit testing with mock objects, using Builders, working with databases and XML, and creating DSLs. You’ll master Groovy’s powerful yet complex run-time and compile-time metaprogramming features.

Much has evolved in the Groovy language since the publication of the first edition of Programming Groovy. Programming Groovy 2 will help you learn and apply Groovy’s new features. Creating DSLs is easier now, and Groovy’s already-powerful metaprogramming facilities have improved even more. You’ll see how to work with closures, including tail call optimization and memoization. The book also covers Groovy’s new static compilation feature.

Whether you’re learning the basics of the language or interested in getting proficient with the new features, Programming Groovy 2 has you covered.

What You Need

To work on the examples in the book you need Groovy 2.0.5 and Java JDK 5 or higher.

Author(s): Venkat Subramaniam

3. Groovy Programming: An Introduction for Java Developers (2006)

Groovy Programming is an introduction to the Java-based scripting language Groovy. Groovy has much in common with popular scripting languages such as Perl, Python, and Ruby, but is written in a Java-like syntax. And, unlike these other languages, Groovy is sanctioned by the Java community for use on the Java platform. Since it is based on Java, applications written in Groovy can make full use of the Java Application Programmer Interfaces (APIs). This means Groovy can integrate seamlessly with applications written in Java, while avoiding the complexities of the full Java language. This bare-bones structure also means Groovy can be used as an introduction to Java and to programming in general. Its simpler constructions and modern origins make it ideal as a first language and for introducing principles such as object-oriented programming.
This book introduces all the major aspects of Groovy development and emphasizes Groovy’s potential as a learning tool. Case studies and exercises are included, along with numerous programming examples. The book begins assuming only a general familiarity with Java programming, and progresses to discuss advanced topics such as GUI builders, Groovlets, Unit Testing, and Groovy SQL.

  • The first comprehensive book on Groovy programming that shows how writing applications and scripts for the Java platform is fast and easy
  • Written by leading software engineers and acclaimed computing instructors
  • Offers numerous programming examples, code samples, detailed case studies, exercises for self-study, and a companion website with a Windows-based Groovy editor

Author(s): Kenneth Barclay, John Savage

4. Groovy in Action: Covers Groovy 2.4 (2015)

Summary

Groovy in Action, Second Edition is a thoroughly revised, comprehensive guide to Groovy programming. It introduces Java developers to the dynamic features that Groovy provides, and shows how to apply Groovy to a range of tasks including building new apps, integration with existing code, and DSL development. Covers Groovy 2.4.

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

About the Technology

In the last ten years, Groovy has become an integral part of a Java developer’s toolbox. Its comfortable, common-sense design, seamless integration with Java, and rich ecosystem that includes the Grails web framework, the Gradle build system, and Spock testing platform have created a large Groovy community

About the Book

Groovy in Action, Second Edition is the undisputed definitive reference on the Groovy language. Written by core members of the Groovy language team, this book presents Groovy like no other can—from the inside out. With relevant examples, careful explanations of Groovy’s key concepts and features, and insightful coverage of how to use Groovy in-production tasks, including building new applications, integration with existing code, and DSL development, this is the only book you’ll need. Updated for Groovy 2.4.

Some experience with Java or another programming language is helpful. No Groovy experience is assumed.

What’s Inside

  • Comprehensive coverage of Groovy 2.4 including language features, libraries, and AST transformations
  • Dynamic, static, and extensible typing
  • Concurrency: actors, data parallelism, and dataflow
  • Applying Groovy: Java integration, XML, SQL, testing, and domain-specific language support
  • Hundreds of reusable examples

About the Authors

Authors Dierk König, Paul King, Guillaume Laforge, Hamlet D’Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet are intimately involved in the creation and ongoing development of the Groovy language and its ecosystem.

Table of Contents

    PART 1 THE GROOVY LANGUAGE
  1. Your way to Groovy
  2. Overture: Groovy basics
  3. Simple Groovy datatypes
  4. Collective Groovy datatypes
  5. Working with closures
  6. Groovy control structures
  7. Object orientation, Groovy style
  8. Dynamic programming with Groovy
  9. Compile-time metaprogramming and AST transformations
  10. Groovy as a static language
  11. PART 2 AROUND THE GROOVY LIBRARY
  12. Working with builders
  13. Working with the GDK
  14. Database programming with Groovy
  15. Working with XML and JSON
  16. Interacting with Web Services
  17. Integrating Groovy
  18. PART 3 APPLIED GROOVY
  19. Unit testing with Groovy
  20. Concurrent Groovy with GPars
  21. Domain-specific languages
  22. The Groovy ecosystem

Author(s): Dierk König, Paul King

5. Reactive Programming with RxJava: Creating Asynchronous, Event-Based Applications (2016)

In today’s app-driven era, when programs are asynchronous and responsiveness is so vital, reactive programming can help you write code that’s more reliable, easier to scale, and better-performing. With this practical book, Java developers will first learn how to view problems in the reactive way, and then build programs that leverage the best features of this exciting new programming paradigm.

Authors Tomasz Nurkiewicz and Ben Christensen include concrete examples that use the RxJava library to solve real-world performance issues on Android devices as well as the server. You’ll learn how RxJava leverages parallelism and concurrency to help you solve today’s problems. This book also provides a preview of the upcoming 2.0 release.

  • Write programs that react to multiple asynchronous sources of input without descending into “callback hell”
  • Get to that aha! moment when you understand how to solve problems in the reactive way
  • Cope with Observables that produce data too quickly to be consumed
  • Explore strategies to debug and to test programs written in the reactive style
  • Efficiently exploit parallelism and concurrency in your programs
  • Learn about the transition to RxJava version 2

Author(s): Tomasz Nurkiewicz, Ben Christensen

6. Learning Groovy (2016)

Start building powerful apps that take advantage of the dynamic scripting capabilities of the Groovy language. This book covers Groovy fundamentals, such as installing Groovy, using Groovy tools, and working with the Groovy Development Kit (GDK). You’ll also learn more advanced aspects of Groovy, such as using Groovy design patterns, writing DSLs in Groovy, and taking advantage of Groovy’s functional programming features.

There is more to Groovy than the core language, so Learning Groovy covers the extended Groovy ecosystem. You’ll see how to harness Gradle (Groovy’s build system), Grails (Groovy’s web application framework), Spock (Groovy’s testing framework), and Ratpack (Groovy’s reactive web library).

What You’ll Learn
  • Grasp Groovy fundamentals, including the GDK or Groovy Development Kit
  • Master advanced Groovy, such as writing Groovy DSLs
  • Discover functional programming in Groovy
  • Work with GPars, the built-in concurrency library

  • Use Gradle, the build system
  • Master Grails, the web application framework
  • Work with Spock, the testing framework
  • Harness Ratpack, the reactive web library
Who This Book Is For
Although this book is intended for those with a Java background, anyone with basic programming skills could benefit from it. This book is a data-filled, yet easy-to-digest tour of the Groovy language and ecosystem. 

Author(s): Adam L. Davis

7. Grails in Action (2014)

Summary

Grails in Action, Second Edition is a comprehensive introduction to Grails 2 focused on making you super-productive fast. In this totally revised new edition, you’ll master Grails 2.3 core skills as you apply TDD techniques to developing a full-scale Twitter clone. Along the way you’ll learn the latest single-page web app UI techniques, work with NoSQL backends, integrate with enterprise messaging, and implement a complete RESTful API for your services.

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

About the Technology

It may be time for you to stop reconfiguring, rewriting, and recompiling your Java web apps. Grails, a Groovy-powered web framework, hides all that busy work so you can concentrate on what your applications do, not how they’re built. In addition to its famously intuitive dev environment and seamless integration with Spring and Hibernate, the new Grails 2.3 adds improved REST support, better protection against attacks from the web, and better dependency resolution.

About the Book

Grails in Action, Second Edition is a comprehensive introduction to Grails 2. In this totally revised edition you’ll master Grails as you apply TDD techniques to a full-scale example (a Twitter clone). Along the way you’ll learn single-page web app techniques, work with NoSQL back ends, integrate with enterprise messaging, implement a RESTful API … and more.

No Java or Groovy knowledge is required. Some web development and OOP experience is helpful.

What’s Inside

  • Covers Grails 2.3 from the ground up
  • Agile delivery and testing using Spock
  • How to use and manage plugins
  • Tips and tricks from the trenches

About the Authors

There’s no substitute for experience: Glen Smith and Peter Ledbrook have been fixtures in the Grails community, contributing code, blogging, and speaking at conferences worldwide, since Grails 0.2.

Table of Contents

    PART 1 INTRODUCING GRAILS
  1. Grails in a hurry
  2. The Groovy essentials
  3. PART 2 CORE GRAILS
  4. Modeling the domain 63
  5. Creating the initial UI
  6. Retrieving the data you need
  7. Controlling application flow
  8. Services and data binding
  9. Developing tasty forms, views, and layouts
  10. PART 3 EVERYDAY GRAILS
  11. Building reliable applications
  12. Using plugins: just add water
  13. Protecting your application
  14. Exposing your app to other programs
  15. Single-page web applications (and other UI stuff)
  16. Understanding Spring and transactions
  17. PART 4 ADVANCED GRAILS
  18. Understanding events, messaging, and scheduling
  19. NoSQL and Grails
  20. Beyond compile, test, run
  21. Grails in the cloud
  22. BONUS ONLINE CHAPTERS
  23. Advanced GORM kung fu
  24. Developing plugins

Author(s): Peter Ledbrook, Glen Smith

8. Groovy in Action (2007)

Groovy, the brand-new language for the Java platform, brings to Java many of the features that have made Ruby popular. Groovy in Action is a comprehensive guide to Groovy programming, introducing Java developers to the new dynamic features that Groovy provides. To bring you Groovy in Action, Manning again went to the source by working with a team of expert authors including both members and the Manager of the Groovy Project team. The result is the true definitive guide to the new Groovy language.

Groovy in Action introduces Groovy by example, presenting lots of reusable code while explaining the underlying concepts. Java developers new to Groovy find a smooth transition into the dynamic programming world. Groovy experts gain a solid reference that challenges them to explore Groovy deeply and creatively.

Because Groovy is so new, most readers will be learning it from scratch. Groovy in Action quickly moves through the Groovy basics, including:

  • Simple and collective Groovy data types
  • Working with Closures and Groovy Control Structures
  • Dynamic Object Orientation, Groovy style

Readers are presented with rich and detailed examples illustrating Groovy’s enhancements to Java, including

  • How to Work with Builders and the GDK
  • Database programming with Groovy

Groovy in Action then demonstrates how to Integrate Groovy with XML, and provides:

  • Tips and Tricks
  • Unit Testing and Build Support
  • Groovy on Windows

An additional bonus is a chapter dedicated to Grails, the Groovy Web Application Framework.

Purchase of the print book comes with an offer of a free PDF eBook from Manning. Also available is all code from the book.

Author(s): Dierk Koenig, Andrew Glover

9. Making Java Groovy (2013)

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

  • Easier Java
  • Closures, builders, and metaprogramming
  • Gradle for builds, Spock for testing
  • Groovy frameworks like Grails and Griffon

About the Author

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

Table of Contents

    PART 1: UP TO SPEED WITH GROOVY
  1. Why add Groovy to Java?
  2. Groovy by example
  3. Code-level integration
  4. Using Groovy features in Java
  5. PART 2: GROOVY TOOLS
  6. Build processes
  7. Testing Groovy and Java projects
  8. PART 3: GROOVY IN THE REAL WORLD
  9. The Spring framework
  10. Database access
  11. RESTful web services
  12. Building and testing web applications

Author(s): Ken Kousen

10. Beginning Groovy and Grails: From Novice to Professional (2008)

Web frameworks are playing a major role in the creation of today’s most compelling web applications, because they automate many of the tedious tasks, allowing developers to instead focus on providing users with creative and powerful features. Java developers have been particularly fortunate in this area, having been able to take advantage of Grails, an open source framework that supercharges productivity when building Java–driven web sites. Grails is based on Groovy, which is a very popular and growing dynamic scripting language for Java developers and was inspired by Python, Ruby, and Smalltalk.

Beginning Groovy and Grails is the first introductory book on the Groovy language and its primary web framework, Grails.

This book gets you started with Groovy and Grails and culminates in the example and possible application of some real–world projects. You follow along with the development of each project, implementing and running each application while learning new features along the way.

Author(s): Christopher M. Judd, Joseph Faisal Nusairat

11. Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript (2016)

Get up and running fast with the basics of programming using Java as an example language. This short book gets you thinking like a programmer in an easy and entertaining way. Modern Programming Made Easy teaches you basic coding principles, including working with lists, sets, arrays, and maps; coding in the object-oriented style; and writing a web application.

This book is language agnostic, but will mainly cover Java, with some references to Groovy, Scala, and JavaScript to give you a broad range of examples to consider. You will get a taste of what modern programming has to offer and set yourself up for further study and growth in your chosen language.

What You’ll Learn
  • Code using the functional programming style
  • Build and test your code
  • Read and write from files
  • Design user interfaces
  • Deploy your app in the cloud

Who This Book Is For<

Anyone who wants to learn how to code. Whether you’re a student, a teacher, looking for a career change, or just a hobbyist, this book is made for you.

Author(s): Adam L. Davis

12. Groovy Recipes: Greasing the Wheels of Java (Pragmatic Programmers) (2008)

Each recipe in Groovy Recipes begins with a concise code example for a quick start, followed by in-depth explanation in plain English. These recipes will get you to-to-speed in a Groovy environment quickly.

You’ll see how to speed up nearly every aspect of the development process using Groovy. Groovy makes mundane file management tasks like copying and renaming files trivial. Reading and writing XML has never been easier with XmlParsers and XmlBuilders. Breathe new life into Arrays, Maps, and Lists with a number of convenience methods. But Groovy does more than just ease traditional Java development: it brings modern programming features to the Java platform like closures, duck-typing, and metaprogramming.

As an added bonus, this book also covers Grails. You’ll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file⎯a web server (Jetty), a database (HSQLDB), Spring, Hibernate, even a Groovy version of Ant called GANT. We cover everything from getting a basic website in place to advanced features that take you beyond HTML into the world of Web Services: REST, JSON, Atom, Podcasting, and much much more.

Author(s): Scott Davis

Get a FREE Consultation

- Want to learn more about how we work?
- Not sure if we meet all your criteria?
- Too shy or busy to give a call?