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

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

## 安装

```sh
sudo av install brew:groovysdk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install groovysdk
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install groovy
```

  证据: MacPorts ports tree: lang/groovy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install groovy
```

  证据: Debian stable package indexes: groovy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#groovy
```

  证据: nixpkgs package indexes: pkgs/by-name/gr/groovy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S groovy
```

  证据: Arch Linux sync databases: groovy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install groovy
```

  证据: Chocolatey community package catalog: groovy from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'

- Scoop (92%):

```sh
scoop install main/groovy
```

  证据: Scoop official bucket manifest trees: bucket/groovy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:groovysdk
- **软件包管理器:** Homebrew
- **版本:** 5.0.8
- **来源摘要:** SDK for Groovy: a Java-based scripting language
- **主页:** <https://www.groovy-lang.org/>
- **最后更新:** 2026-08-01T06:43:25Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- grape (别名)
- grape_completion (别名)
- groovy (别名)
- groovy.ico (别名)
- groovyConsole (别名)
- groovyConsole_completion (别名)
- groovy_completion (别名)
- groovyc (别名)
- groovyc_completion (别名)
- groovydoc (别名)
- groovydoc_completion (别名)
- groovysh (别名)
- groovysh_completion (别名)
- java2groovy (别名)
- startGroovy (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.0.8
## 项目历史与用法

The `groovysdk` package is a Homebrew packaging companion for Apache Groovy SDK-related assets rather than a separate upstream language. Its history is therefore the project-level history of Apache Groovy, with package significance centered on SDK support files and completions.

### 项目历史

Apache Groovy began in 2003 as a Java-platform language and evolved through beta, JSR, release-candidate, and 1.0.0 releases documented in the official changelog. JSR 241 records the Java Community Process standardization effort for Groovy.

Groovy 2.0.0 in 2012 added static type checking and static compilation to the language's dynamic scripting model. In 2015, the project entered the Apache Incubator and graduated on 2015-11-18 as an Apache top-level project.

The package role is narrower than the main `groovy` formula: `groovysdk` is curated as SDK material for Groovy, with completion assets and documentation-oriented support around the same Apache Groovy upstream.

### 采用历史

The Groovy SDK is relevant because Groovy users rarely consume only a compiler. They use shell commands, documentation, dependency tooling, completions, and editor or terminal support around a JVM language distribution.

Groovy adoption in build tools, CI pipelines, frameworks, and test tooling made SDK-adjacent packaging useful: completions and command support reduce friction for users who run Groovy tools directly from a Unix shell.

### 使用方式

The Homebrew package exposes completion-oriented files such as `groovy_completion`, `groovyc_completion`, `groovysh_completion`, `groovyConsole_completion`, `groovydoc_completion`, and `grape_completion` rather than the main runtime command set.

Because it shares Apache Groovy's per-user conventions, the curation preserves the same `~/.groovy` configuration paths used by Grape, logging, and shell initialization. No separate credentials file is documented for this SDK package.

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

`groovysdk` is package-nerd interesting mostly as a split-package artifact: it shows how package managers sometimes separate a language runtime from SDK or shell-support assets even when the upstream project is one language distribution.

The package also makes Groovy friendlier in CLI-heavy environments by shipping completions for the commands developers use when compiling, documenting, running, and exploring Groovy code.

### 时间线

- 2003: Groovy project history begins.
- 2007: Groovy 1.0.0 was released.
- 2012: Groovy 2.0.0 was released with static type checking and static compilation.
- 2015: Groovy graduated from Apache incubation.
- 2020: Groovy 3.0.0 was released.
- 2022: Groovy 4.0.0 was released.
- 2025: Groovy 5.0.0 was released.

### Related projects

- Apache Groovy is the upstream project for this package role.
- The main Homebrew `groovy` package provides the runtime commands that the SDK completion files accompany.
- Grape, Groovysh, Groovyc, Groovydoc, and GroovyConsole are the command surfaces reflected by the package contents.

### 来源

- <https://github.com/apache/groovy>
- <https://groovy-lang.org/changelogs.html>
- <https://groovy-lang.org/releasenotes/groovy-2.0.html>
- <https://groovy.apache.org/download.html>
- <https://incubator.apache.org/projects/groovy.html>
- <https://jcp.org/en/jsr/detail?id=241>
- <https://www.groovy-lang.org/>
- <https://www.groovy-lang.org/documentation.html>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## 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

- Unix: ~/.groovy/grapeConfig.xml, ~/.groovy/logging.properties, ~/.groovy/groovysh_init.groovy
## 其他软件包管理器记录

- MacPorts - groovy: installed executable or alias match | MacPorts ports tree: lang/groovy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - groovy - 2.4.21-10: installed executable or alias match | Debian stable package indexes: groovy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Agile dynamic language for the Java Virtual Machine | http://www.groovy-lang.org
- Debian apt - groovy-doc - 2.4.21-10: installed executable or alias match | Debian stable package indexes: groovy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Agile dynamic language for the Java Virtual Machine (documentation) | http://www.groovy-lang.org
- Nix - groovy: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/gr/groovy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - groovy - 2.4.21-10: installed executable or alias match | Ubuntu 24.04 LTS package indexes: groovy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Agile dynamic language for the Java Virtual Machine | http://www.groovy-lang.org
- Ubuntu apt - groovy-doc - 2.4.21-10: installed executable or alias match | Ubuntu 24.04 LTS package indexes: groovy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Agile dynamic language for the Java Virtual Machine (documentation) | http://www.groovy-lang.org
- pacman - groovy - 5.0.8-1: installed executable or alias match | Arch Linux sync databases: groovy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Programming language for the Java platform, inspired by Python, Ruby and Smalltalk | https://groovy-lang.org/
- Chocolatey - groovy: installed executable or alias match | Chocolatey community package catalog: groovy from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'
- Scoop - main/groovy: installed executable or alias match | Scoop official bucket manifest trees: bucket/groovy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/groovysdk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/groovysdk.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
