Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gradle

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gradle

MacPorts ports tree · devel/gradle/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gradle

Alpine Linux edge package indexes · gradle · 来源: dl-cdn.alpinelinux.org

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

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

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

nixpkgs package indexes · gradle · 来源: raw.githubusercontent.com

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

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

Windows

Chocolatey已验证 · 92%
choco install gradle

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

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

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

概览

软件包摘要

Open-source build automation tool based on the Groovy and Kotlin DSL

命令和别名

  • gradle

历史

项目历史与用法

Gradle is an open-source build automation tool for multi-language software projects, especially JVM and Android builds. Its package-manager identity is the `gradle` CLI, but most projects actually standardize on the Gradle Wrapper so a repository can declare the Gradle distribution it expects.

Gradle became important because it combined ideas from earlier build tools with a programmable Groovy and later Kotlin DSL, task graph execution, dependency management, plugins, daemons, caching, and integration with IDEs and CI.

项目历史

Gradle's own documentation describes builds as projects and tasks configured by build scripts written in Groovy or Kotlin. The project structure convention centers on `settings.gradle(.kts)`, `build.gradle(.kts)`, and the wrapper scripts `gradlew` and `gradlew.bat`.

Gradle 1.0, released on June 12, 2012 according to the official release index, was framed by its release notes as a major step for Gradle and build tools. That release replaced Ivy-based dependency resolution with a Gradle dependency engine, improved dependency caching, added daemon performance work, expanded Java quality plugins, and emphasized enterprise-scale builds.

Gradle's official evolution article summarizes the major-version arc: 2.0 improved performance, memory efficiency, dependency management, and incremental build support; 3.0 enabled the daemon by default and improved IDE/Kotlin DSL support; 4.0 made build cache production-ready for Java and Groovy compilation; 5.0 made Kotlin DSL production-ready and added Java 11 support; 6.0 introduced enhanced dependency management metadata; 7.0 focused on incremental builds, dependency verification, and Java 16 support; 8.0 emphasized configuration-cache behavior and parallelism.

采用历史

Gradle spread through JVM projects because it offered programmable build logic while still providing conventions through plugins. Android adoption made Gradle part of a massive mobile build ecosystem: Android Studio projects expose Gradle wrapper files, settings files, top-level and module-level build files, and Gradle properties as standard project artifacts.

The wrapper changed package-manager expectations. A developer may install `gradle` with Homebrew to bootstrap or run ad hoc builds, but many repositories prefer `./gradlew` so the checked-in wrapper properties select the project Gradle version. This made Gradle unusually friendly to mixed-version repositories and CI environments.

Gradle also became a platform for build-performance tooling. Official docs and adjacent Gradle products emphasize build scans, daemon reuse, build cache, configuration cache, and profiling workflows, reflecting a culture where the build tool is both dependency resolver and performance-critical infrastructure.

使用方式

At the command line, developers run tasks such as `gradle build`, `gradle test`, or `gradle clean build`, but Gradle documentation recommends the wrapper for most existing projects. Build scripts define tasks, plugins, dependencies, repositories, and project conventions.

The common files are package-ecosystem signals: `settings.gradle` or `settings.gradle.kts` defines root and subprojects; `build.gradle` or `build.gradle.kts` defines build logic; `gradle.properties` configures Gradle or project properties; and files under the Gradle user home configure user-wide behavior such as init scripts.

Gradle's DSL and plugin system make it a host for ecosystems rather than only a command runner. Java, Groovy, Kotlin, Scala, Android, C/C++, JavaScript, and Kotlin Multiplatform projects all appear in the official documentation as supported languages or frameworks.

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

Gradle is significant to package nerds because it is itself a package manager, dependency resolver, task scheduler, and project metadata interpreter. A Gradle installation can decide which artifacts are fetched, how versions are aligned, when tasks are up to date, and which generated outputs are reproducible.

It also forces distribution questions: should a system package provide one Gradle CLI, should a project use the wrapper, how should checksums and distribution URLs be audited, and how should old major versions remain available when enterprise or Android builds cannot immediately migrate?

For Homebrew, the unversioned `gradle` formula serves users who want a general CLI installation, while versioned formulae such as `gradle@7` and `gradle@8` serve projects pinned to a major line.

时间线

  • 2009: The official release index lists Gradle 0.8.
  • 2012: Gradle 1.0 released with rebuilt dependency resolution, improved dependency cache, daemon performance work, quality plugins, and Tooling API emphasis.
  • 2014: Gradle 2.0 improved performance, memory efficiency, dependency management, and incremental build support.
  • 2016: Gradle 3.0 enabled the daemon by default and improved IDE/Kotlin DSL support.
  • 2017: Gradle 4.0 made build cache production-ready for Java and Groovy compilation.
  • 2018: Gradle 5.0 made Kotlin DSL production-ready and supported Java 11.
  • 2019: Gradle 6.0 introduced enhanced dependency management with a new metadata format.
  • 2021: Gradle 7.0 added Java 16 support, Apple Silicon support, and experimental version catalogs.
  • 2023: Gradle 8.0 expanded configuration-cache execution behavior and Java toolchain configuration.

Related projects

  • Apache Ant, Apache Maven, Ivy, Make, SCons, and Bazel are adjacent build and dependency-management tools.
  • Android Gradle Plugin and Android Studio are major downstream Gradle ecosystem pieces.
  • Develocity, Gradle Build Scan, Gradle Profiler, and Gradle Plugin Portal are closely related Gradle ecosystem services or tools.
  • Groovy and Kotlin are central to Gradle's build-script DSL story.

安全态势

风险级别:yellow

build system capable of executing project logic.

风险分类器

yellow 风险 · 高 置信度 · runtime

原因

  • build system capable of executing project logic

信号

  • override:gradle

安装行为

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

建议审查

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

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
~/.gradle/gradle.properties~/.gradle/init.d/*.gradle./gradle.properties./settings.gradle(.kts)./build.gradle(.kts)
Windows
C:\Users\<USERNAME>\.gradle\gradle.propertiesC:\Users\<USERNAME>\.gradle\init.d\*.gradle.\gradle.properties.\settings.gradle(.kts).\build.gradle(.kts)

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gradlecli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.gradle.org/

安装元数据

软件包元数据

软件包键brew:gradle
版本9.6.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gradle
主页https://www.gradle.org/
仓库https://github.com/gradle/gradle
上游文档https://docs.gradle.org/current
许可证Apache-2.0
源码归档https://services.gradle.org/distributions/gradle-9.6.1-all.zip
最后更新2026-06-26T19:52:00Z
Pulseupdated
依赖gradle-completion, openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegradle
Aliases
  • gradle@9
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

gradle 4.4.1-22

Powerful build system for the JVM

https://gradle.org

sudo apt install gradle
  • Section: java
  • Architecture: all
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gradle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gradle from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gradle-doc 4.4.1-22

Powerful build system for the JVM - Documentations

https://gradle.org

sudo apt install gradle-doc
  • Section: doc
  • Architecture: all
  • Source Package: gradle
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gradle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gradle-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgradle-core-java 4.4.1-22

Powerful build system for the JVM - Core libraries

https://gradle.org

sudo apt install libgradle-core-java
  • Section: java
  • Architecture: all
  • Source Package: gradle
  • 24 依赖
  • normalized package name match
  • 匹配方式:Gradle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgradle-core-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgradle-plugins-java 4.4.1-22

Powerful build system for the JVM - All plugins

https://gradle.org

sudo apt install libgradle-plugins-java
  • Section: java
  • Architecture: all
  • Source Package: gradle
  • 32 依赖
  • normalized package name match
  • 匹配方式:Gradle
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgradle-plugins-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gradle

nix profile install nixpkgs#gradle
  • normalized package name match
  • 匹配方式:Gradle
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: gradle from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

gradle 4.4.1-20

Powerful build system for the JVM

https://gradle.org

sudo apt install gradle
  • Section: universe/java
  • Architecture: all
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gradle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gradle from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

gradle-doc 4.4.1-20

Powerful build system for the JVM - Documentations

https://gradle.org

sudo apt install gradle-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: gradle
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gradle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gradle-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgradle-core-java 4.4.1-20

Powerful build system for the JVM - Core libraries

https://gradle.org

sudo apt install libgradle-core-java
  • Section: universe/java
  • Architecture: all
  • Source Package: gradle
  • 24 依赖
  • normalized package name match
  • 匹配方式:Gradle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgradle-core-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgradle-plugins-java 4.4.1-20

Powerful build system for the JVM - All plugins

https://gradle.org

sudo apt install libgradle-plugins-java
  • Section: universe/java
  • Architecture: all
  • Source Package: gradle
  • 32 依赖
  • normalized package name match
  • 匹配方式:Gradle
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgradle-plugins-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gradle 8.14.4-r0

Build tool with a focus on build automation and support for multi-language development

https://gradle.org/

sudo apk add gradle
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: gradle
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gradle
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gradle from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

gradle 9.5.1-1

Powerful build system for the JVM

https://gradle.org/

sudo pacman -S gradle
  • License: Apache
  • Architecture: any
  • 6 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Gradle
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gradle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

gradle

sudo port install gradle
  • normalized package name match
  • 匹配方式:Gradle
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/gradle/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

gradle

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

main/gradle

scoop install main/gradle
  • normalized package name match
  • 匹配方式:Gradle
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/gradle.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