Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

andrewparmet/buf-publisher

Repository files navigation

buf-publisher

Maven Central

Publishes Buf binaries to Maven Central for consumption by JVM projects. Written to support the Buf Gradle Plugin.

Table of Contents

Publishing

In contrast to other published binaries like protoc, which are published and tagged according to the binary itself, this project's versioning scheme is to publish each configured version of Buf to an artifact versioned according to this project. If a specific version has an issue then all versions of Buf can be republished.

CI is configured through GitHub Actions. For manual publication:

Run to publish to Sonatype's staging repository:

OSSRH_USERNAME=<username> \
OSSRH_PASSWORD=<password> \
PGP_KEY=<key-with-$-instead-of-newlines> \
PGP_PASSWORD=<passphrase> \
./gradlew \
publishToSonatype \
-Dorg.gradle.internal.http.socketTimeout=120000 \
-Dorg.gradle.internal.network.retry.max.attempts=1 \
-Dorg.gradle.internal.publish.checksums.insecure=true

Then close the repository and test locally.

Then promote the repository.