Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



Groovy is a pl created in 2003 by James Strachan.

#82on PLDB 19Years Old 6.1kUsers
22Books 7Papers 76kRepos

Try now: Riju · TIO

Apache Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of Python, Ruby, Perl, and Smalltalk. It can be used as a scripting language for the Java Platform, is dynamically compiled to Java virtual machine (JVM) bytecode, and interoperates with other Java code and libraries. Read more on Wikipedia...

Example from Riju:
print "Hello, world!";
Example from hello-world:
println "Hello World"
Example from the Hello World Collection:
// Hello World in Groovy println "Hello World"
Example from Linguist:
#!/usr/bin/env groovy println "Groovy!"
Example from Wikipedia:
class Bird implements FlyingAbility {} /* Adds the trait FlyingAbility to the Bird class capabilities */ def bird = new Bird() /* instantiate a new Bird */ assert == "I'm flying!" /* the Bird class automatically gets the behavior of the FlyingAbility trait */

Keywords in Groovy

as assert break case catch class const continue def default do else enum extends false finally for goto if implements import in instanceof interface new null package return super switch this throw throws trait true try while

Language features

Feature Supported Example Token
Switch Statements
While Loops
Booleans true false
"Hello world"
MultiLine Comments
/* A comment
/* */
Print() Debugging println
// A comment
Line Comments
// A comment
Operator Overloading
Semantic Indentation ϴ

Books about Groovy on goodreads

title author year reviews ratings rating
Programming Groovy Venkat Subramaniam 2008 13 121 3.81

Books about Groovy from ISBNdb

title authors year publisher
Scripting in Java: Integrating with Groovy and JavaScript Sharan, Kishori 2014 Apress
Groovy 2 Cookbook Adamovich, Andrey and Fiandesio, Luciano 2013 Packt Publishing
Groovy Recipes: Greasing the Wheels of Java (Pragmatic Programmers) Davis, Scott 2008 Pragmatic Bookshelf
Learning Groovy 3: Java-Based Dynamic Scripting Davis, Adam L. 2019 Apress
Programming Groovy 2: Dynamic Productivity for the Java Developer (Pragmatic Programmers) Subramaniam, Venkat 2013 Pragmatic Bookshelf
Groovy in Action Dierk Koenig and Andrew Glover and Paul King and Guillaume Laforge and Jon Skeet 2007 Manning Publications
Groovy Programming: An Introduction for Java Developers Barclay, Kenneth and Savage, John 2006 Morgan Kaufmann
Beginning Groovy and Grails: From Novice to Professional Christopher M. Judd and Joseph Faisal Nusairat and James Shingler 2008 Apress
Introduction to JVM Languages: Get familiar with the world of Java, Scala, Clojure, Kotlin, and Groovy Leun, Vincent van der 2017 Packt Publishing
Groovy for Domain-Specific Languages Dearle,Fergal 2010 Packt Publishing
Groovy programming San Francisco, CA : Morgan Kaufmann Publishers, 2006.
Learning Groovy Adam L. Davis 20160805 Springer Nature
Groovy Programming Kenneth Barclay 20100727 Elsevier S & T
Groovy (programming Language) Miller and Frederic P. and Vandome and Agnes F. and McBrewster and John 2010
Making Java Groovy Kenneth Kousen 20130918 Simon & Schuster
Groovy 2 Cookbook Andrey Adamovich; Luciano Fiandesio 20131022 Packt Publishing
Groovy in Action Cédric Champeau; Dierk Koenig; Hamlet D'Arcy; Paul King 20150603 Simon & Schuster
Groovy for Domain-Specific Languages Fergal Dearle 2010-06-01 Packt Publishing
Groovy for Domain-specific Languages - Second Edition Fergal Dearle 20150928 Packt Publishing
Programming Groovy 2: dynamic productivity for the Java developer Subramaniam, Venkat. The Pragmatic Programmers
Unity 4.x Game Development By Example Beginner's Guide: A Seat-of-your-pants Manual For Building Fun, Groovy Little Games Quickly With Unity 4.x Creighton, Ryan Henson. Packt Pub.

Publications about Groovy from Semantic Scholar

title authors year citations influentialCitations
Groovy package templates: supporting reuse and runtime adaption of class hierarchies Eyvind W. Axelsen and S. Krogdahl 2009 14 2
Groovy AOP: a dynamic AOP system for a JVM-based language Chanwit Kaewkasi and J. Gurd 2008 10 1
A crash overview of groovy K. Henry 2006 8 3
Groovy and Grails Recipes Bashar Abdul-Jawad 2008 5 1
Implementing patient recruitment on EURECA semantic integration platform through a Groovy query engine B. Claerhout and Kristof de Schepper and D. Pérez-Rey and R. Alonso-Calvo and J. V. Leeuwen and A. Bucur 2013 2 0
A history of the Groovy programming language Paul King 2020 2 0
Feature oriented programming in Groovy G. T. Assis and Gustavo Vale and Eduardo Figueiredo 2017 1 0
graphql.html · groovy.html · latex.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub ·