Fork me on GitHub

Download

In this download area, you will be able to download the distribution (binary and source), the Windows installer (for some of the versions) and the documentation for Groovy.

All the downloads are hosted in Bintray's Groovy repository. Registering on Bintray allows you to rate, review, and register for new version notifications.

For a quick and effortless start on Mac OSX, Linux or Cygwin, you can use GVM (Groovy enVironment Manager) to download and configure any Groovy version of your choice. Basic instructions can be found below.
Windows users can use Posh-GVM (POwerSHell Groovy enVironment Manager), a PowerShell clone of the GVM CLI.


Distributions

You can download a binary, a source, a documentation bundle, as well as a bundle of the three.

Groovy 2.4

Groovy 2.4 is our latest official version of Groovy. Important: Releases before 2.4.4 weren't done under the Apache Software Foundation and are provided as a convenience, without any warantee.

Apache Groovy is an effort undergoing incubation at The Apache Software
Foundation (ASF) sponsored by the Apache Incubator PMC. Incubation is required
of all newly accepted projects until a further review indicates that the
infrastructure, communications, and decision making process have stabilized
in a manner consistent with other successful ASF projects. While incubation
status is not necessarily a reflection of the completeness or stability of
the code, it does indicate that the project has yet to be fully endorsed by
the ASF.

2.4.4 distributions


binary

source

documentation

SDK bundle

Consult the change log.
Read the invoke dynamic support information if you wish to use it on JDK 7+


GVM (the Groovy enVironment Manager)

This tool makes installing Groovy on any Bash platform (Mac OSX, Linux, Cygwin, Solaris or FreeBSD) very easy.
Simply open a new terminal and enter:

$ curl -s get.gvmtool.net | bash

Follow the instructions on-screen to complete installation.
Open a new terminal or type the command:

$ source "$HOME/.gvm/bin/gvm-init.sh"

Then install the latest stable Groovy:

$ gvm install groovy

After installation is complete and you've made it your default version, test it with:

$ groovy -version

That's all there is to it!


From your build tools

If you wish to add Groovy as a dependency in your projects, you can refer to the Groovy JARs in the dependency section of your project build file descriptor:

GradleMavenExplanation
org.codehaus.groovy:groovy:x.y.z<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>x.y.z</version>
Just the core of Groovy without the modules (see below). Also includes jarjar'ed versions of Antlr, ASM, and Commons-CLI.
org.codehaus.groovy:groovy-$module:x.y.z<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-$module</artifactId>
<version>x.y.z</version>
"$module" stands for the different optional groovy modules "ant", "bsf", "console", "docgenerator", "groovydoc", "groovysh", "jmx", "json", "jsr223", "servlet", "sql", "swing", "test", "testng" and "xml".
Example: <artifactId>groovy-sql</artifactId>
org.codehaus.groovy:groovy-all:x.y.z<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>x.y.z</version>
The core plus all the modules. Also includes jarjar'ed versions of Antlr, ASM, Commons-CLI runtime. Allows you or your other dependencies (e.g. Hibernate) to use other versions of these jars. Optional dependencies are marked as optional. You may need to include some of the optional dependencies to use some features of Groovy, e.g. AntBuilder, GroovyMBeans, etc.

Maven repositories

Groovy releases are downloadable from Maven Central or JCenter.

Groovy snapshots are downloadable from JFrog OpenSource Snapshots repository


Other ways to get Groovy

If you're on MacOS and have Homebrew installed, you can install Groovy with:

brew install groovy
If you're on MacOS and have MacPorts installed, you can install Groovy with:
sudo port install groovy
If you prefer to live on the bleeding edge, you can also grab the source code from GitHub
If you are an IDE user, you can just grab the latest IDE plugin and follow the plugin installation instructions.

System requirements

Groovy BranchJVM Required (non-indy)JVM Required (indy) *
2.3 - current1.61.7
2.0 - 2.21.51.7
1.6 - 1.81.5N/A
1.0 - 1.51.4N/A
* If you plan on using invoke dynamic support, read the support information.