Tagging release of Groovy 2.2.0-beta-1
Release Groovy 2.2.0-beta-1
1 file changed
tree: f9cf45f556de8642a38936e9fd52951ad9b6daf2
  1. .externalToolBuilders/
  2. .settings/
  3. benchmark/
  4. buildSrc/
  5. config/
  6. gradle/
  7. security/
  8. src/
  9. subprojects/
  10. xdocs/
  11. .classpath
  12. .gitignore
  13. .project
  14. build.gradle
  15. gradle.properties
  16. gradlew
  17. gradlew.bat
  18. LICENSE.txt
  19. NOTICE.txt
  20. README.md
  21. settings.gradle
README.md

Groovy

[Groovy][Groovy] is an agile and dynamic language for the Java Virtual Machine. It builds upon the strengths of Java, but has additional power features inspired by languages like Python, Ruby and Smalltalk. Groovy makes modern programming features available to Java developers with almost-zero learning curve as well as supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain. Groovy makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL. It also increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications. Groovy simplifies testing by supporting unit testing and mocking out-of-the-box. Groovy also seamlessly integrates with all existing Java classes and libraries and compiles straight to Java bytecode so you can use it anywhere you can use Java. [Groovy]: http://groovy.codehaus.org/

Building

To build you will need:

To build everything using Gradle (the command below will download Gradle automatically, you do not need to download it first).

./gradlew clean dist

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

To build from IntelliJ IDEA

./gradlew idea
./gradlew jarAll

Then open the generated project in IDEA.

To build from Eclipse (work in progress see GROOVY-6226 for details)

./gradlew cleanEclipse eclipse
./gradlew jarAll

Then open the generated project and the generated subprojects in Eclipse.

InvokeDynamic support

The Groovy build supports the new Java 7 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

License

Groovy is licensed under the terms of the [Apache License, Version 2.0][Apache License, Version 2.0]. [Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html