Repository navigation
Publish to Maven Central from GitHub Releases - #20
Open
williamfiset wants to merge 1 commit into
Open
williamfiset wants to merge 1 commit into
williamfiset wants to merge 1 commit into
Conversation
- Add the com.vanniktech.maven.publish plugin with POM metadata (GPL-3.0, SCM, developer) and Central Portal publishing. - Version comes from -PreleaseVersion (the release tag); local builds are 1.3-SNAPSHOT. Signing only runs when a key is provided. - release.yml publishes to Central and attaches fastjavaio.jar when a GitHub Release is published; ci.yml runs tests on pushes and PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publishes
io.github.williamfiset:fastjavaioto Maven Central whenever a GitHub Release is published.Changes
build.gradle: adds thecom.vanniktech.maven.publishplugin (0.37.0) for Central Portal publishing, with the full POM metadata Central requires. The license is listed as GPL-3.0, matchingLICENSE. The plugin also builds the sources and javadoc jars, sowithSourcesJar()/withJavadocJar()are removed. Releases are set to go live automatically once validation passes (publishToMavenCentral(true)).-PreleaseVersion, which the workflow sets from the release tag, with a leadingvstripped. Local builds default to1.3-SNAPSHOT../gradlew publishToMavenLocalworks without GPG..github/workflows/release.yml: on release published, it runs the tests, publishes to Central, and attachesfastjavaio.jarto the release. You no longer need to build and upload the jar by hand..github/workflows/ci.yml: runs tests and javadoc on pushes to master and on PRs.Verified
./gradlew test publishToMavenLocal -PreleaseVersion=0.0.0-testproduces the jar, sources, javadoc, POM and module files. The POM has no dependencies and the correct metadata.One-time setup before the first release
io.github.williamfisetnamespace is verified automatically.keys.openpgp.org.MAVEN_CENTRAL_USERNAME,MAVEN_CENTRAL_PASSWORD(from the token),SIGNING_KEY(the ASCII-armored private key), andSIGNING_KEY_PASSWORD.🤖 Generated with Claude Code