Apache Groovy is a JVM language blending dynamic and static typing, scripting, domain-specific language authoring, and functional features. It interoperates with Java libraries and ships compilers and runtime tools.
Overview
Groovy runs on the JVM and supports optional and duck typing alongside static compilation and static type checking through its type checker. Syntax aims to stay concise while remaining familiar to Java developers, with smooth access to existing Java classes and libraries.
Capabilities include scripting, domain-specific language authoring, compile-time and runtime metaprogramming, and functional programming constructs. The project distributes binaries via its website and Maven coordinates, and sources build with Gradle into standard Groovy distributions.
The Apache Software Foundation governs releases under the Apache License. Tooling includes groovy, groovysh, and groovyc launchers, documentation built from tested samples, and IDE project generation for IntelliJ IDEA and Eclipse.
Developers can install a local build for testing language changes or consume published releases for application and build-script use across the JVM ecosystem.
Key features
- JVM bytecode execution
- Dynamic and static typing modes
- Java library interoperability
- Scripting and shell execution
- Script authoring support
- Compile-time and runtime metaprogramming
- Functional programming features
- Gradle-based build and distribution
Use cases
- JVM scripting and automation
- Gradle and build logic in Groovy
- Internal DSLs for configuration
- Gradual typing on Java platforms