Automic VaultAutomic Vault

brew

Install groovy with Homebrew, chocolatey, apt, MacPorts, Nix, pacman, scoop

Java-based scripting language. Version 5.0.7 via Homebrew; verified 2026-07-04.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install groovy

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install groovy

MacPorts ports tree · lang/groovy/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install groovy

Debian stable package indexes · groovy · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#groovy

nixpkgs package indexes · pkgs/by-name/gr/groovy/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S groovy

Arch Linux sync databases · groovy · source: geo.mirror.pkgbuild.com

Windows

Chocolateyverified · 92%
choco install groovy

Chocolatey community package catalog · groovy · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/groovy

Scoop official bucket manifest trees · bucket/groovy.json · source: api.github.com

overview

Package summary

Java-based scripting language

Commands and aliases

  • grape
  • groovy
  • groovyConsole
  • groovyc
  • groovydoc
  • groovysh
  • java2groovy
  • startGroovy

history

Project history and usage

Apache Groovy is a JVM language and scripting runtime with Java-like syntax, dynamic and static typing options, metaprogramming, builders, closures, DSL support, and direct Java interoperability.

As a package, `groovy` is a classic developer workstation formula: it installs the language runtime and command-line tools used for scripts, REPL sessions, compilation, documentation generation, dependency grabbing, and Java-adjacent automation.

Project history

The Groovy project dates itself to 2003, and the official site copyright span begins in 2003. Early public release history is visible in the official changelog, which lists beta releases beginning in December 2003 and JSR-labeled releases through 2005 and 2006.

Groovy entered the Java Community Process as JSR 241, an effort to standardize the Groovy programming language for the Java platform. The official changelog records Groovy 1.0.0 on 2007-01-03, after years of beta, release-candidate, and JSR-tagged builds.

Groovy 2.0.0 was released in 2012. Its release notes highlighted static type checking and static compilation, helping Groovy serve both dynamic scripting and more performance-conscious JVM code paths.

In 2015, the Groovy project moved into the Apache Software Foundation incubator. Apache's incubator status page records that Groovy graduated on 2015-11-18, establishing Apache Groovy as an ASF top-level project governed under Apache processes.

Later major lines kept the language aligned with modern Java while retaining its scripting and DSL identity. The official changelog records Groovy 3.0.0 in 2020, Groovy 4.0.0 in 2022, and Groovy 5.0.0 in 2025.

Adoption history

Groovy's adoption came from being close enough to Java for enterprise teams while adding concise syntax, closures, builders, runtime metaprogramming, and script execution. That made it useful for build logic, tests, internal automation, and DSL-heavy frameworks.

The Groovy ecosystem became especially visible through Grails, Gradle build scripts, Spock tests, Jenkins Pipeline scripts, and many smaller Java-platform automation tasks. The official home page describes a vibrant ecosystem across web development, reactive applications, concurrency, test frameworks, build tools, code analysis, and GUI building.

Apache governance mattered for adoption because it moved Groovy from its Codehaus-era identity into ASF infrastructure, releases, trademarks, and community processes. That gave packagers a stable upstream identity and helped downstream projects refer to Apache Groovy rather than a vendor-owned runtime.

How it is used

The Homebrew `groovy` package installs command-line entry points such as `groovy`, `groovyc`, `groovysh`, `groovyConsole`, `groovydoc`, `grape`, `java2groovy`, and `startGroovy`.

`groovy` runs scripts and classes on the JVM; `groovyc` compiles Groovy sources; `groovysh` provides a shell; `groovyConsole` provides a Swing console; `groovydoc` builds API documentation; and `grape` handles Groovy's dependency-grabbing workflow.

User-level files under `~/.groovy` are part of the package curation because Grape, logging, and shell startup customization are common per-user Groovy workflows. No general credentials file is documented for the language runtime.

Why package nerds care

Groovy is a packaging hinge for the JVM scripting world. A single language package exposes a REPL, compiler, script runner, dependency helper, and documentation generator while depending on Java rather than shipping an isolated VM.

It also sits at the intersection of language-runtime packaging and build-tool culture. Many developers meet Groovy through tools that embed it, but the package remains valuable for direct scripts, local debugging, and running examples outside a larger framework.

For package maintainers, Groovy is interesting because the project has long-lived major lines, Apache source-release expectations, Java-version compatibility concerns, and a split between the language distribution and SDK/documentation adjunct packages.

Timeline

  • 2003: Groovy project history begins, with beta releases listed in the official changelog.
  • 2004: JSR 241 tracked Groovy standardization work for the Java platform.
  • 2007: Groovy 1.0.0 was released.
  • 2012: Groovy 2.0.0 introduced static type checking and static compilation as headline features.
  • 2015: Groovy entered Apache incubation and graduated as an Apache top-level project on 2015-11-18.
  • 2020: Groovy 3.0.0 was released.
  • 2022: Groovy 4.0.0 was released.
  • 2025: Groovy 5.0.0 was released.

Related projects

  • Grails is the historically important Groovy web framework.
  • Gradle popularized Groovy DSL usage for JVM builds.
  • Spock is a Groovy-based testing and specification framework.
  • Jenkins Pipeline made Groovy scripts a common CI/CD automation surface.
  • Grape is Groovy's dependency-grabbing system exposed by the `grape` command.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:scripting language

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.groovy/grapeConfig.xml~/.groovy/logging.properties~/.groovy/groovysh_init.groovy

executables

Installed executables

CommandKindExposureNote
grapecliglobal executable
groovycliglobal executable
groovyConsolecliglobal executable
groovyccliglobal executable
groovydoccliglobal executable
groovyshcliglobal executable
java2groovycliglobal executable
startGroovycliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version5.0.7
manager updated2026-07-04
local dataok
upstreamnot checked
latest detectednot detected

https://www.groovy-lang.org/

install metadata

Package metadata

Package keybrew:groovy
Version5.0.7
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/groovy
Homepagehttps://www.groovy-lang.org/
Repositoryhttps://github.com/apache/groovy
Upstream docshttps://groovy.apache.org/
LicenseApache-2.0
Source archivehttps://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-5.0.7.zip
Last updated2026-07-04T02:30:52Z
Pulseupdated
Dependenciesopenjdk
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegroovy
Version Scheme0
Revision0
Conflicts With
  • groovysdk
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

groovy 2.4.21-10

Agile dynamic language for the Java Virtual Machine

http://www.groovy-lang.org

sudo apt install groovy
  • Section: java
  • Architecture: all
  • 15 dependencies
  • 5 optional deps
  • normalized package name match
  • Matched by: Groovy
Debian stable package indexes · deb.debian.org · Debian stable package indexes: groovy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

groovy-doc 2.4.21-10

Agile dynamic language for the Java Virtual Machine (documentation)

http://www.groovy-lang.org

sudo apt install groovy-doc
  • Section: doc
  • Architecture: all
  • Source Package: groovy
  • 4 optional deps
  • normalized package name match
  • Matched by: Groovy
Debian stable package indexes · deb.debian.org · Debian stable package indexes: groovy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

groovy

nix profile install nixpkgs#groovy
  • normalized package name match
  • Matched by: Groovy
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gr/groovy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

groovy 2.4.21-10

Agile dynamic language for the Java Virtual Machine

http://www.groovy-lang.org

sudo apt install groovy
  • Section: universe/devel
  • Architecture: all
  • 15 dependencies
  • 5 optional deps
  • normalized package name match
  • Matched by: Groovy
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: groovy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

groovy-doc 2.4.21-10

Agile dynamic language for the Java Virtual Machine (documentation)

http://www.groovy-lang.org

sudo apt install groovy-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: groovy
  • 4 optional deps
  • normalized package name match
  • Matched by: Groovy
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: groovy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

groovy 5.0.4-1

Programming language for the Java platform, inspired by Python, Ruby and Smalltalk

https://groovy-lang.org/

sudo pacman -S groovy
  • License: Apache-2.0
  • Architecture: any
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Groovy
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: groovy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

groovy

sudo port install groovy
  • normalized package name match
  • Matched by: Groovy
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/groovy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

groovy

choco install groovy
  • normalized package name match
  • Matched by: Groovy
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: groovy from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gpg4win-vanilla'
Scoop95%

main/groovy

scoop install main/groovy
  • normalized package name match
  • Matched by: Groovy
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/groovy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment