Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, apt, MacPorts, Nix, pacman, scoop 安装 groovy

查看 groovy 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install groovy

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install groovy

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

Linux

Debian apt已验证 · 92%
sudo apt install groovy

Debian stable package indexes · groovy · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#groovy

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

Arch Linux pacman已验证 · 92%
sudo pacman -S groovy

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

Windows

Chocolatey已验证 · 92%
choco install groovy

Chocolatey community package catalog · groovy · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/groovy

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

概览

软件包摘要

Java-based scripting language

命令和别名

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

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:scripting language

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
grapecli全局可执行文件
groovycli全局可执行文件
groovyConsolecli全局可执行文件
groovyccli全局可执行文件
groovydoccli全局可执行文件
groovyshcli全局可执行文件
java2groovycli全局可执行文件
startGroovycli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本5.0.7
管理器更新时间2026-07-04
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:groovy
版本5.0.7
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/groovy
主页https://www.groovy-lang.org/
仓库https://github.com/apache/groovy
上游文档https://groovy.apache.org/
许可证Apache-2.0
源码归档https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-5.0.7.zip
最后更新2026-07-04T02:30:52Z
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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