Skip to content

Migrate to Central Publisher Portal#42

Merged
BenWoodworth merged 10 commits intomainfrom
central-publisher-portal
Nov 19, 2025
Merged

Migrate to Central Publisher Portal#42
BenWoodworth merged 10 commits intomainfrom
central-publisher-portal

Conversation

@BenWoodworth
Copy link
Copy Markdown
Owner

No description provided.

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.
The Binary Compatibility Validator plugin has been deprecated with the
release of Kotlin v2.2.0, with the functionality now being built-in and
configurable directly from the Kotlin Gradle Plugin.
The build reported `ILLEGAL_TYPE_ARGUMENT_FOR_VARARG_PARAMETER_WARNING`:
> 'Nothing' is inferred as the vararg parameter type, which might lead
> to exceptions at runtime. Consider specifying the type argument
> explicitly.
@BenWoodworth BenWoodworth force-pushed the central-publisher-portal branch from 54bbc03 to 5445284 Compare November 17, 2025 05:50
@BenWoodworth BenWoodworth force-pushed the central-publisher-portal branch 2 times, most recently from f153eeb to 3e12bf0 Compare November 19, 2025 03:23
Some warnings introduced in Kotlin 2.2.20, and others in Dokka 2.0.0:
Kotlin/dokka#4351
The restrictions and thrown exceptions are implementation details
specific to parameterize-core, and don't necessarily apply to all
`ParameterizeScope` implementations. The restrictions themselves are
already documented by `parameterize {}` as well, so the behavior is
still accounted for.
@BenWoodworth BenWoodworth force-pushed the central-publisher-portal branch from 3e12bf0 to 2de088c Compare November 19, 2025 04:33
@BenWoodworth BenWoodworth merged commit 2de088c into main Nov 19, 2025
10 checks passed
@BenWoodworth BenWoodworth deleted the central-publisher-portal branch November 19, 2025 16:44
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