apache/groovy


Mirror of Apache Groovy

License: Apache-2.0

Language: Java

Keywords: groovy, java, library


Apache Groovy

medium

jdk Apache License 2 teamcity build status travis build status bintray download follow on Twitter

Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at multiplying developers’ productivity thanks to a concise, familiar and easy to learn syntax.

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

Downloading

Latest Groovy version is available on Bintray Bintray latest version

Binary distribution links are on the package page.

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

Get automatic notifications about new "groovy" versions link=https://bintray.com/groovy/maven/groovy/view?source=watch

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:

https://gitbox.apache.org/repos/asf/groovy.git

And a mirror is hosted on Github:

https://github.com/apache/groovy

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.

Simply 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 the downloaded Gradle 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 gradle_version property defined in the gradle.properties file within the root directory. Luckily you shouldn’t need to know that version and, after bootstrapping, you should use the gradlew 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 -b wrapper.gradle wrapper

On Unix-like systems, use ./gradle. If the version of Gradle you have installed is close to the required version, you might be able to get away without the -b wrapper.gradle above, but if in doubt leave it in.

NOTE: At this point, the Gradle wrapper should be set up and from now on you should use the gradlew command instead of gradle. (On Unix-like systems, use ./gradlew).

Building from Source

Build is build status.

To build you will need:

To build everything using Gradle, use the following command (./gradlew 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. <TestClassName> is like groovy.GroovyMethodsTest.

gradlew :test --tests <TestClassName>

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 src/spec/test/semantics/PowerAssertTest.groovy

gradlew testSinglePowerAssertTest

(Note the omission of package name: class is semantics.PowerAssertTest but only PowerAssertTest is added to testSingle.)

InvokeDynamic support

The Groovy build supports the JVM instruction invokedynamic. If you want to build Groovy with invokedynamic, you can use the project property indy:

gradlew -Pindy=true clean test

Please note that the following Gradle tasks generate both indy and non indy variants of the jars, so you don’t need to use the system property:

  • dist

  • install

  • uploadArchives

Continuous Integration Server

The official CI server runs 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:

silver sponsor

Thank you to our Bronze Sponsors:

bronze sponsor

Thank you to our backers(donating monthly):

backer

Thank you to all our backers:

backers

License

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

Project Statistics

Sourcerank 18
Repository Size 171 MB
Stars 3,299
Forks 1,252
Watchers 236
Open issues disabled
Dependencies 52
Contributors 285
Tags 188
Created
Last updated
Last pushed

Top Contributors See all

Paul King Cédric Champeau Jochen Theodorou Daniel.Sun James Strachan Guillaume Laforge Pascal Schumacher roshandawrani Danno Ferrin Alex Tkachman John Wagenleitner jeremyrayner Hamlet D'Arcy Dierk König Andres Almiray Seagull Sam Pullara Jim White Andre Steingress Shil Sinha

Packages Referencing this Repo

org.codehaus.groovy:groovy-jaxb
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-alpha-4 - Updated - 3.3K stars
org.codehaus.groovy:performance
Groovy: A powerful, dynamic language for the JVM
Latest release 2.5.0-alpha-1 - Published - 3.3K stars
org.codehaus.groovy:groovy-ant
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy-datetime
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-macro
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-tests-vm8
Groovy: A powerful, dynamic language for the JVM
Latest release 2.5.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-test-junit5
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-dateutil
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-testng
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-alpha-4 - Updated - 3.3K stars
org.codehaus.groovy:groovy-console
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-xml
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-alpha-4 - Updated - 3.3K stars
org.codehaus.groovy:groovy-all
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy-docgenerator
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-backports-compat23
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-alpha-4 - Updated - 3.3K stars
org.codehaus.groovy:groovy-bsf
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-1 - Updated - 3.3K stars
org.codehaus.groovy:groovy-cli-picocli
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy-jsr223
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy-templates
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars
org.codehaus.groovy:groovy-json
Groovy: A powerful, dynamic language for the JVM
Latest release 3.0.0-beta-2 - Updated - 3.3K stars

Recent Tags See all

GROOVY_3_0_0_BETA_2 July 07, 2019
GROOVY_2_5_7 May 07, 2019
GROOVY_3_0_0_BETA_1 May 07, 2019
GROOVY_2_4_17 May 06, 2019
GROOVY_2_5_6 February 01, 2019
GROOVY_3_0_0_ALPHA_4 December 27, 2018
GROOVY_2_5_5 December 21, 2018
GROOVY_2_4_16 December 09, 2018
GROOVY_2_5_4 November 08, 2018
GROOVY_2_5_3 October 11, 2018
GROOVY_2_5_2 August 10, 2018
GROOVY_2_5_1 July 10, 2018
GROOVY_3_0_0_ALPHA_3 June 23, 2018
GROOVY_2_6_0_ALPHA_4 June 23, 2018
GROOVY_2_5_0 May 27, 2018

Interesting Forks See all

jespersm/groovy
Mirror of Apache Groovy
Java - Other - Last pushed - 4 stars - 2 forks
Jason-Chen-2017/groovy
Mirror of Apache Groovy
Java - Published - 1 stars
gosaint/groovy
Mirror of Apache Groovy
Java - Updated - 1 stars
rongwei84n/groovy
Mirror of Apache Groovy
Java - Updated - 1 stars
dalavanmanphonsy/groovy
Mirror of Apache Groovy
This repository is no longer available - 1 stars - 1 forks

Something wrong with this page? Make a suggestion

Last synced: 2019-07-14 05:44:08 UTC

Login to resync this repository