Need help with groovy?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

4.3K Stars 1.6K Forks Apache License 2.0 18.9K Commits 23 Opened issues


Apache Groovy: A powerful multi-faceted programming language for the JVM platform

Services available


Need anything else?

Contributors list


Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


= Apache Groovy The Groovy development team :revdate: 24-02-2014 :build-icon: :travis-build-icon: :sonarcloud-icon: :noheader: :groovy-www: :groovy-ci: :travis-ci: :sonarcloud: :jdk: //:bintray-latest-version-image: //:bintray-latest-version-link: :apache-license-icon: :apache-license-link: :apache-groovy-twitter-icon: :apache-groovy-twitter-link: :jdk-icon: //:bintray-download-icon: :opencollective-link: :sponsors-silver-img: :sponsors-bronze-img: :backers-monthly-img: :backers-all-img:

[.left.text-left] image::[] image:{jdk-icon}[jdk, link={jdk}] image:{apache-license-icon}[Apache License 2, link={apache-license-link}] image:{build-icon}[teamcity build status, link={groovy-ci}] image:{travis-build-icon}[travis build status, link={travis-ci}] image:{sonarcloud-icon}[maintainability rating, link={sonarcloud}] //image:{bintray-download-icon}[bintray download, link={bintray-latest-version-link}] image:{apache-groovy-twitter-icon}[follow on Twitter, link={apache-groovy-twitter-link}]

{groovy-www}[Groovy] is a powerful multi-faceted programming language for the JVM platform. It supports a spectrum of programming styles incorporating features from dynamic languages such as optional and duck typing, but also static compilation and static type checking at levels similar to or greater than Java through its extensible static type checker. It aims to greatly increase developer productivity with many powerful features but also a concise, familiar and easy to learn syntax.

It integrates smoothly with any Java class or library, and immediately delivers to your application powerful capabilities, including scripting support, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.

== Downloading

Distribution links are on the[download] page.

Maven, Gradle and Ivy dependency declaration snippets are available on specific files of a particular module.

== Obtaining the Source

You don't need the source code to use Apache Groovy but if you wish to explore its inner workings or build it for yourself there are two ways to obtain the source files.

=== Checking out from Version Control

Apache Groovy uses Git. The official Git repository is at:

And a mirror is hosted on Github:

The Github mirror is read-only and provides convenience to users and developers to explore the code and for the community to accept contributions via Github Pull Requests.


git clone
the repo (or the repo you forked via the github website) and you will have the complete source.

=== Unpacking the src distribution

Alternatively, you can download the source distribution and unpack it.

If obtaining the source from the source distribution and you intend to build from source, you also need to[download] and install[Gradle] and use it to execute one bootstrap step.

==== Bootstrapping Gradle

As mentioned in the previous paragraph, if you download the source distribution you need to bootstrap Gradle. This isn't needed if you clone from the Github repo.

Each version of Groovy is built and tested using a specific version of Gradle. That version is specified by the

property defined in the
file within the root directory. Luckily you shouldn't need to know that version and, after bootstrapping, you should use the
command which will ensure the correct version is always used.

The version of Gradle used for the bootstrap step has some flexibility though in general you might need to download a version similar to the version of Groovy the build is expecting.

To bootstrap Gradle, at the top directory of your unpacked source, run the command:

gradle -p bootstrap

On Unix-like systems, use


[NOTE] At this point, the Gradle wrapper should be set up and from now on you should use the

command instead of
. (On Unix-like systems, use

== Building from Source

// Build is image:{build-icon}[build status, link={groovy-ci}].

To build you will need:

  • {jdk}[JDK 11+]

To build everything using Gradle, use the following command (

on Unix-like systems):
gradlew clean dist

[NOTE] The gradlew command automatically downloads the correct Gradle version if needed, you do not need to download it first.

This will generate a distribution similar to the zip you can download on the Groovy download page.

To build everything and launch unit tests, use:

gradlew test

If you want to launch one unit test, use this. is like


gradlew :test --tests 

To build from IntelliJ IDEA:

gradlew jar idea

Then open the generated project in IDEA.

To build from Eclipse:

gradlew jar eclipse

Then open the generated project and the generated subprojects in Eclipse. But be aware that Eclipse tends to be more limited in its ability to reproduce a Gradle build structure. The generated project files may contain a circular dependency which may or may not prevent Eclipse from using them. It depends on the Eclipse version, if this is an issue or not.

To build the documentation (Groovy Language Documentation):

gradlew asciidoc

All code samples of the documentation guide are pulled from actual test cases. To run a single documentation test case, take for example

gradlew testSinglePowerAssertTest

[NOTE] The omission of package name: class is

but only
is added to

== Verifying dependencies To generate the missing verification metadata when add/bump dependencies:

gradlew --write-verification-metadata pgp,sha512 --dry-run

then compare

with the generated
, and merge the missing verification metadata into
after the result of the above operation is reviewed.

== Continuous Integration Server

The official CI server runs {groovy-ci}[here] and is sponsored by[JetBrains].

== Java Profiler

Groovy core team tunes performance through YourKit Java Profiler, which is sponsored by[YourKit].

== Friends of Groovy Open Collective As an independent initiative, we have set up an open collective for Groovy:

This initiative is designed to complement the Apache project and the many contributions we get from our great community and supporters.

  • Thank you to our Silver Sponsors:


  • Thank you to our Bronze Sponsors:


  • Thank you to our backers (donating monthly):


  • Thank you to all our backers:


== Stargazers over time

image::[Stargazers over time, link=]

== License

Groovy is licensed under the terms of the[Apache License, Version 2.0]

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.