# google/protobuf-gradle-plugin

Protobuf Plugin for Gradle

Repository: https://github.com/google/protobuf-gradle-plugin
Canonical: https://ross.abutalabs.com/products/protobuf-gradle-plugin
Language: Groovy
License: NOASSERTION
License Family: other
Last push: 2026-04-20T13:47:40+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 48, longevity 100
- inputs: {"age_days": 4160, "days_push": 135, "days_rel": 135, "gap_med": 191.5, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1832, forks 288 (observed 2026-08-28T04:05:42.318382+00:00)

## What it is
A Gradle plugin from Google that compiles Protocol Buffer (.proto) definition files by invoking protoc and wiring the generated Java/Kotlin sources into the project's compilation units. It supports both Java and Android Gradle projects.

## Use cases
- compile .proto files in a Gradle build
- generate Java classes from protobuf definitions
- set up protobuf codegen for an Android project
- integrate protoc into Gradle source sets
- build gRPC services with generated stubs in Gradle

## When to choose
- your JVM or Android Gradle project uses Protocol Buffers
- you want automatic protoc invocation and generated-source wiring
- you need per-sourceSet or per-variant proto compilation

## When to avoid
- your project does not use Gradle (e.g., Maven or Bazel)
- you generate only non-Java/Kotlin sources and need custom wiring anyway
- you need protobuf support outside the JVM ecosystem

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, compiler, serialization
- domain: developer-tools, apis, backend, mobile-development
- platform: jvm
- tags: gradle-plugin, protobuf, protoc, code-generation, android, java, kotlin, gradle

## Member repositories
- google/protobuf-gradle-plugin (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.318382+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:09.552720+00:00, confidence not recorded.
  - readme: https://github.com/google/protobuf-gradle-plugin (fetched 2026-08-28T04:05:42.318382+00:00, sha 78867875724c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
