macOS
brew install groovylocal Homebrew formula metadata
sudo port install groovyMacPorts ports tree · lang/groovy/Portfile · 来源: api.github.com
安装
brew install groovylocal Homebrew formula metadata
sudo port install groovyMacPorts ports tree · lang/groovy/Portfile · 来源: api.github.com
sudo apt install groovyDebian stable package indexes · groovy · 来源: deb.debian.org
nix profile install nixpkgs#groovynixpkgs package indexes · pkgs/by-name/gr/groovy/package.nix · 来源: api.github.com
sudo pacman -S groovyArch Linux sync databases · groovy · 来源: geo.mirror.pkgbuild.com
choco install groovyChocolatey community package catalog · groovy · 来源: community.chocolatey.org
scoop install main/groovyScoop official bucket manifest trees · bucket/groovy.json · 来源: api.github.com
概览
Java-based scripting language
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.groovy/grapeConfig.xml~/.groovy/logging.properties~/.groovy/groovysh_init.groovy可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
grape | cli | 全局可执行文件 | |
groovy | cli | 全局可执行文件 | |
groovyConsole | cli | 全局可执行文件 | |
groovyc | cli | 全局可执行文件 | |
groovydoc | cli | 全局可执行文件 | |
groovysh | cli | 全局可执行文件 | |
java2groovy | cli | 全局可执行文件 | |
startGroovy | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | groovy |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
groovy 2.4.21-10
Agile dynamic language for the Java Virtual Machine
sudo apt install groovygroovy-doc 2.4.21-10
Agile dynamic language for the Java Virtual Machine (documentation)
sudo apt install groovy-docgroovy
nix profile install nixpkgs#groovygroovy 2.4.21-10
Agile dynamic language for the Java Virtual Machine
sudo apt install groovygroovy-doc 2.4.21-10
Agile dynamic language for the Java Virtual Machine (documentation)
sudo apt install groovy-docgroovy 5.0.4-1
Programming language for the Java platform, inspired by Python, Ruby and Smalltalk
sudo pacman -S groovygroovy
sudo port install groovygroovy
choco install groovymain/groovy
scoop install main/groovy来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.