Skip to content

Use com.vanniktech.maven.publish for publishing#59

Merged
BenWoodworth merged 4 commits intomainfrom
vanniktech-maven-publish
Nov 19, 2025
Merged

Use com.vanniktech.maven.publish for publishing#59
BenWoodworth merged 4 commits intomainfrom
vanniktech-maven-publish

Conversation

@BenWoodworth
Copy link
Owner

There's currently no official Gradle plugin for publishing with Maven
Central's new Portal Publisher API. The maven-publish plugin could
still be used through the OSSRH Staging API, however GitHub Actions can
change IP address mid-run, making publishing this way inconsistent given
that this API requires the IP address to be the same when finalizing and
uploading to the Central Publisher Portal.

Instead, com.vanniktech.maven.publish is a well-supported community
plugin that use the new API, and its configuration is similar enough to
very similar to maven-publish that the build script changes are minimal.

This reverts commit 999d117.

The maven-publish plugin could
still be used through the OSSRH Staging API, however GitHub Actions can
change IP address mid-run, making publishing this way inconsistent given
that this API requires the IP address to be the same when finalizing and
uploading to the Central Publisher Portal.
@BenWoodworth BenWoodworth force-pushed the vanniktech-maven-publish branch from a397c18 to c5c3db9 Compare November 11, 2025 17:26
There's currently no official Gradle plugin for publishing with Maven
Central's new Portal Publisher API. The maven-publish plugin *could*
still be used through the OSSRH Staging API, however GitHub Actions can
change IP address mid-run, making publishing this way inconsistent given
that this API requires the IP address to be the same when finalizing and
uploading to the Central Publisher Portal.

Instead, com.vanniktech.maven.publish is a well-supported community
plugin that use the new API, and its configuration is similar enough to
very similar to maven-publish that the build script changes are minimal.
Needed for com.vanniktech.maven.publish, since it requires JDK 11+.
@BenWoodworth BenWoodworth force-pushed the vanniktech-maven-publish branch from c5c3db9 to 5884f72 Compare November 11, 2025 17:54
@BenWoodworth BenWoodworth merged commit 5884f72 into main Nov 19, 2025
6 checks passed
@BenWoodworth BenWoodworth deleted the vanniktech-maven-publish branch November 19, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant