Automic VaultAutomic Vault

brew

google-java-format mit Homebrew, MacPorts, Nix, scoop installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für google-java-format in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install google-java-format

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install google-java-format

MacPorts ports tree · java/google-java-format/Portfile · Quelle: api.github.com

Linux

Nixverifiziert · 92%
nix profile install nixpkgs#google-java-format

nixpkgs package indexes · pkgs/by-name/go/google-java-format/package.nix · Quelle: api.github.com

Windows

Scoopverifiziert · 92%
scoop install extras/google-java-format

Scoop official bucket manifest trees · bucket/google-java-format.json · Quelle: api.github.com

Überblick

Paketzusammenfassung

Reformats Java source code to comply with Google Java Style

Befehle und Aliase

  • google-java-format
  • google-java-format-diff

Verlauf

Projektgeschichte und Nutzung

google-java-format is Google's command-line and library implementation of the Google Java Style formatter. The project deliberately avoids user-configurable formatting rules so Java code can be normalized to one Google style across editors, builds, and scripts.

Projektgeschichte

Google opened the GitHub repository in May 2015 and published a 0.1 Alpha release in November 2015. The 1.0 release followed in April 2016, establishing the formatter as a packaged tool rather than only an internal style convention.

The README describes several integration surfaces around the same formatter engine: a command-line jar or native binary, a diff-oriented helper script, JetBrains and Eclipse plugins, and use as a Java library from Maven or Gradle builds. That shape made the project useful both for individual developer machines and for automated formatting checks.

Adoptionsgeschichte

Adoption grew through the Java tooling ecosystem because the formatter is intentionally prescriptive. The official README lists third-party integrations for Visual Studio Code, Gradle, Maven, SBT, and GitHub Actions, showing how package maintainers and build-tool authors wrapped the same formatter for their own workflows.

Package-manager adoption followed the CLI packaging model: Homebrew, MacPorts, Nix, and Scoop package the formatter so users can run `google-java-format` or `google-java-format-diff` without hand-managing the release jar.

Wie es verwendet wird

The common package-manager use is formatting whole Java files from the shell, rewriting files in place with `--replace`, checking changed lines with the diff helper, or enforcing style in CI with a nonzero exit when files differ. The library mode supports code generators and build tools that need formatted Java output.

The formatter depends on javac internals through the `jdk.compiler` module, so editor and library integrations document extra JVM export flags on strongly encapsulated JDKs.

Warum Paket-Nerds sich dafür interessieren

google-java-format matters to package nerds because it packages a style guide as executable policy. It is a canonical example of a formatter with almost no bikeshed surface: installation, editor integration, and CI wiring matter more than local configuration.

It also sits at the intersection of Java release engineering and package distribution: jars, native binaries, IDE plugins, Maven artifacts, and OS package-manager formulae all expose the same opinionated formatting behavior.

Zeitleiste

  • 2015: GitHub repository created under google/google-java-format.
  • 2015: 0.1 Alpha published on GitHub Releases.
  • 2016: 1.0 release published on GitHub Releases.
  • 2017: 1.x releases added a steady release cadence for package managers and editor integrations.
  • 2021: JDK strong encapsulation made the documented `--add-exports` flags important for plugin and library users.

Related projects

  • The README points to Google Java Style, the IntelliJ and Eclipse plugins, google-java-format-diff, Spotless Gradle and Maven integrations, fmt-maven-plugin, sbt-java-formatter, and GitHub Actions wrappers.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 1 Plattformziele verfügbar.
  • Installiert mit 1 Laufzeitabhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
google-java-formatcliglobales Executable
google-java-format-diffcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-10
Manager-Version1.35.0
Manager aktualisiert
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/google/google-java-format

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:google-java-format
Version1.35.0
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/google-java-format
Homepagehttps://github.com/google/google-java-format
Repositoryhttps://github.com/google/google-java-format
Upstream-Dokumentationhttps://github.com/google/google-java-format#readme
LizenzApache-2.0
Quellarchivhttps://github.com/google/google-java-format/releases/download/v1.35.0/google-java-format-1.35.0-all-deps.jar
Abhängigkeitenopenjdk
Von macOS bereitgestellte Bibliothekenpython
Bottleverfügbar (auf all)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegoogle-java-format
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Nix95%

google-java-format

nix profile install nixpkgs#google-java-format
  • normalized package name match
  • Abgeglichen nach: Google Java Format
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/google-java-format/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

google-java-format

sudo port install google-java-format
  • normalized package name match
  • Abgeglichen nach: Google Java Format
MacPorts ports tree · api.github.com · MacPorts ports tree: java/google-java-format/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

extras/google-java-format

scoop install extras/google-java-format
  • normalized package name match
  • Abgeglichen nach: Google Java Format
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/google-java-format.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

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