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 downloads (except the source download) 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 SDKMAN! (The Software Development Kit 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 or a documentation bundle, as well as a bundle of all three.

Groovy 2.4

Groovy 2.4 is the latest 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 warranty.

2.4.7 distributions


binary

source

documentation

SDK bundle

Windows installer

Please consult the change log for details. Please read the invoke dynamic support information if you like to use Groovy on JDK 7+.


SDKMAN! (The Software Development Kit 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.sdkman.io | bash

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

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

Then install the latest stable Groovy:

$ sdk 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", "nio", "servlet", "sql", "swing", "test", "templates", "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. 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...

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

GroovyJVM Required (non-indy)JVM Required (indy) *
2.3 - current1.6+1.7+
2.0 - 2.21.5+1.7+
1.6 - 1.81.5+N/A
1.0 - 1.51.4+N/A
* If you plan to use invoke dynamic support, please read the support information.