Fork me on GitHub

Download

Ways to get Apache Groovy:


Distributions

Distributions are bundles of source or class files needed to build or use Groovy.

All Apache projects provide a source zip which lets anyone build the software from scratch. If any doubt arises, you can regard the source zip as the authoritative artifact for each release. We also provide binary, downloadable documentation and SDK (combines src, binary and docs) convenience artifacts. You can also find a link to a non-ASF Windows installer convenience executable (if available).

Verification

We provide OpenPGP signatures ('.asc') files and checksums for every release artifact. We recommend that you verify the integrity of downloaded files by generating your own checksums and matching them against ours and checking signatures using the KEYS file which contains the OpenPGP keys of Groovy's Release Managers across all releases.

Groovy 3.0

Groovy 3.0 is a bleeding edge version of Groovy designed for JDK8+ and with the new Parrot parser enabled by default. Pre-stable versions are available:

3.0.0-alpha-3 distributions


binary

(asc sha256)

source

(asc sha256)

documentation

(asc sha256)

SDK bundle

(asc sha256)

Windows installer

(community artifact)

Please consult the change log for details.

Groovy 2.6

Groovy 2.6 is designed for JDK7+ and supports the new Parrot parser (when enabled) but has been retired before reaching final release to focus on Groovy 3.0. Alpha versions are available to help people wanting to port towards Groovy 3.0 but who are stuck on JDK7. See links under "Other versions" for details.

Groovy 2.5

Groovy 2.5 is the latest stable version of Groovy.

2.5.3 distributions


binary

(asc sha256)

source

(asc sha256)

documentation

(asc sha256)

SDK bundle

(asc sha256)

Windows installer

(community artifact)

Please consult the change log for details.

Groovy 2.4

Groovy 2.4 is the previous stable 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.15 distributions


binary

(asc sha256)

source

(asc sha256)

documentation

(asc sha256)

SDK bundle

(asc sha256)

Windows installer

(community artifact)

Please consult the change log for details.


Operating system/package manager installation

Installing Apache Groovy from a distribution zip is not hard but if you don't want the hassle, consider the alternatives listed here.

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix-based systems:

$ sdk install groovy

Windows users: see the SDKMAN install instructions for potential options.

Homebrew is "the missing package manager for macOS":

$ brew install groovy

MacPorts is a system for managing tools on macOS:

$ sudo port install groovy

Scoop is a command-line installer for Windows inspired by Homebrew:

> scoop install groovy

Chocolatey provides a sane way to manage software on Windows:

> choco install groovy

Linux/*nix users: you may also find Groovy is available using your preferred operating system package manager, e.g.: apt, dpkg, pacman, etc.

Windows users: consider also the Windows installer (see links above under Distributions).


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*. Also includes jarjar'ed versions of Antlr, ASM, and an internal copy of needed CLI implementation classes.
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*. 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>
<type>pom</type> <!-- required JUST since Groovy 2.5.0 -->
Core plus all of the modules (excluding optional modules) according to the version packaging scheme**.
* Modules:
2.4.X: "ant", "bsf", "console", "docgenerator", "groovydoc", "groovysh", "jmx", "json", "jsr223", "nio", "servlet", "sql", "swing", "test", "templates", "testng" and "xml"
2.5.0: as above but excluding optional module "bsf" plus "cli-picocli", "datetime", "macro", "test-junit5". Optional modules: "bsf", "dateutil", "cli-commons"
2.5.1+: as above but "groovy-jaxb" is moved to become optional
** Packaging Scheme:
2.4.X: The core plus all the modules merged into one "fat jar". Optional dependencies are marked as optional, so you may need to include some of the optional dependencies to use some features of Groovy, e.g. AntBuilder, GroovyMBeans...
2.5+: A "fat pom" groovy-all-x.y.z.pom referring to the core plus all modules (excluding optional ones). In order to cater to the module system of Java 9+, the groovy-all-x.y.z.jar file is no longer available.
Indy jars
You can access the indy version of the core or a module jar by using the 'indy' classifier.

Maven repositories

Groovy release jars are available from Maven Central or JCenter.

Groovy snapshot jars are available from JFrog OpenSource Snapshots repository. Snapshots are not official releases but are provided to assist with integration testing leading up to an official release.


System requirements

GroovyJVM Required (non-indy)JVM Required (indy) *
3.0 - current1.8+1.8+
2.5 - 2.61.7+1.7+
2.3 - 2.41.6+1.7+
2.0 - 2.21.5+1.7+
1.6 - 1.81.5+N/A
1.51.4+N/A
1.01.4-1.7N/A
* If you plan to use invoke dynamic support, please read the support information.