A flexible and extensible Java-like language for the JVM
open sourceApache-2.0free
Apache Groovy is a language for the JVM with a Java-like syntax and added productivity features. It supports object-oriented and functional programming and is both dynamic and statically compilable, with type inference and optional static type checking. It interoperates both ways with Java classes and libraries, and closures, builders, traits, AST transformations and meta-programming make it a common choice for scripts, tests and domain-specific languages, and for build and automation tasks. It's an Apache Software Foundation project under the Apache License 2.0.
Libraries for Java and Kotlin
- Firecrawl
- Playwright
- OpenAPI Generator
- Pulumi
- Convex
- Temporal
- Protocol Buffers
- Inngest
- Open Policy Agent
- Appium
View 40 more
- River
- OpenJDK
- iText Core
- Apache PDFBox
- MuPDF
- Swagger Codegen
- Herb
- Apache Guacamole
- Clerk
- Selenium
- ironpress
- gRPC
- Tink
- Carbone
- Cloudinary
- Cadence
- Radar
- BugSnag
- Apache Kafka
- Jitsi Meet
- Tauri
- Adobe PDF Library
- Apache Casbin
- Superwall
- TrailBase
- MLflow
- Ktor
- RevenueCat
- Apache JMeter
- NVIDIA Dynamo-Triton
- OpenTelemetry
- Apache Camel
- OpenFeature
- Gatling
- GO Feature Flag
- Tolgee
- Firebase Cloud Messaging
- Stytch
- Oso Cloud
- Apache OpenDAL
Browse all of them: 106 libraries, 27 frameworks, 153 APIs.
Problems it solves
- a scripting language that can use all our existing Java libraries directly
- write concise tests for a Java codebase without Java's boilerplate
- build a readable domain-specific language for business rules on the JVM
- a language Java developers can pick up in a day for automation and glue code
- choose between dynamic and static typing in the same JVM language
- write build and automation scripts in a real programming language
Features
- Java-like syntax with bidirectional Java interoperability
- optional static compilation and type checking
- closures, builders and traits
- runtime and compile-time meta-programming and AST transformations
- scripting and DSL support
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Apache Groovy does.
- Clojure A robust, practical, and fast programming language
- Kotlin Concise. Multiplatform. Fun.
- Scala Expressive, scalable, safe
- Ruby A Programmer's Best Friend
- ReScript A robustly typed language that compiles to efficient, human-readable JavaScript
- F# F# empowers everyone to write succinct, robust and performant code
