talira

Apache Groovy

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

View 40 more

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 toolplan not known

Alternatives

The same job

These do what Apache Groovy does.

  1. Clojure A robust, practical, and fast programming language
  2. Kotlin Concise. Multiplatform. Fun.
  3. Scala Expressive, scalable, safe
  4. Ruby A Programmer's Best Friend
  5. ReScript A robustly typed language that compiles to efficient, human-readable JavaScript
  6. F# F# empowers everyone to write succinct, robust and performant code

Compare Apache Groovy with the top 3