Skip to content

Migrate to com.vanniktech.maven.publish. - #860

Open
cpovirk wants to merge 1 commit into
mainfrom
new-deployment
Open

cpovirk wants to merge 1 commit into
mainfrom
new-deployment

Conversation

@cpovirk

@cpovirk cpovirk commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

(It sets up withJavadocJar() and withSourcesJar() automatically.)

I used this to publish release 1.0.1.

Fixes #827 (by eliminating that section entirely)

(It sets up `withJavadocJar()` and `withSourcesJar()` automatically.)

I used this to publish release 1.0.1.

Fixes #827 (by eliminating that section entirely)
@cpovirk

cpovirk commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator Author

@jpenilla

jpenilla commented Aug 3, 2026

Copy link
Copy Markdown

Hey, I ran into a small problem with the 1.0.1 publication while migrating a project to JSpecify and filed #867 with the details. The Javadoc jar itself is there, but javadocElements is missing from the Gradle module metadata, unlike in 1.0.0.

This looks like the same behavior described in vanniktech/gradle-maven-publish-plugin#1028. The full plugin does create and publish a Javadoc jar automatically, but that apparently isn't quite equivalent to java.withJavadocJar() for Gradle metadata consumers. That issue mentions the base plugin as a workaround.

From the related PRs, it looks like the main goal here is to move off the Nexus publishing plugin onto the current Central Portal API and restore configuration-cache compatibility. I've had good results with dev.lukebemish.central-portal-publishing in my projects. It handles Central Portal bundle publication while leaving the normal maven-publish/signing setup in place, and is designed for configuration cache and isolated projects. It might be worth a look as an alternative to the full Vanniktech plugin here.

jpd236 added a commit to jpd236/volley that referenced this pull request Aug 5, 2026
OSSRH is shut down, so we must migrate to Sonatype Central. This in turn requires additional changes:

- A new publishing plugin that supports Sonatype Central. There is [not yet an official plugin](https://central.sonatype.org/publish/publish-portal-gradle/), but other notable OSS (Dagger, Glide) and Google ([JSpecify](jspecify/jspecify#860)) projects are using com.vanniktech:gradle-maven-publish-plugin, which should work for now.
- This plugin requires JDK 17, Gradle 9, and Android Gradle Plugin 8.13.0.
- The updated JDK requires a newer ErrorProne.
- The newer ErrorProne has additional checks which fail and need to be disabled for now.

None of these changes are expected to impact clients though they may need to update their build tools as well. The minSdkVersion remains unchanged.

New repository secrets have been added with the needed publishing credentials. Builds are verified locally but actual SNAPSHOT uploading won't be tested until this commit is approved.

See google#464
jpd236 added a commit to jpd236/volley that referenced this pull request Aug 5, 2026
OSSRH is shut down, so we must migrate to Sonatype Central. This in turn requires additional changes:

- A new publishing plugin that supports Sonatype Central. There is [not yet an official plugin](https://central.sonatype.org/publish/publish-portal-gradle/), but other notable OSS (Dagger, Glide) and Google ([JSpecify](jspecify/jspecify#860)) projects are using com.vanniktech:gradle-maven-publish-plugin, which should work for now.
- This plugin requires JDK 17, Gradle 9, and Android Gradle Plugin 8.13.0.
- The updated JDK requires a newer ErrorProne.
- The newer ErrorProne has additional checks which fail and need to be disabled for now.

None of these changes are expected to impact clients though they may need to update their build tools as well. The minSdkVersion remains unchanged.

New repository secrets have been added with the needed publishing credentials. Builds are verified locally but actual SNAPSHOT uploading won't be tested until this commit is approved.

See google#464
jpd236 added a commit to jpd236/volley that referenced this pull request Aug 5, 2026
OSSRH is shut down, so we must migrate to Sonatype Central. This in turn requires additional changes:

- A new publishing plugin that supports Sonatype Central. There is [not yet an official plugin](https://central.sonatype.org/publish/publish-portal-gradle/), but other notable OSS (Dagger, Glide) and Google ([JSpecify](jspecify/jspecify#860)) projects are using com.vanniktech:gradle-maven-publish-plugin, which should work for now.
- This plugin requires JDK 17, Gradle 9, and Android Gradle Plugin 8.13.0.
- The updated JDK requires a newer ErrorProne.
- The newer ErrorProne has additional checks which fail and need to be disabled for now.

None of these changes are expected to impact clients though they may need to update their build tools as well. The minSdkVersion remains unchanged.

New repository secrets have been added with the needed publishing credentials. Builds are verified locally but actual SNAPSHOT uploading won't be tested until this commit is approved.

See google#464
jpd236 added a commit to jpd236/volley that referenced this pull request Aug 5, 2026
OSSRH is shut down, so we must migrate to Sonatype Central. This in turn requires additional changes:

- A new publishing plugin that supports Sonatype Central. There is [not yet an official plugin](https://central.sonatype.org/publish/publish-portal-gradle/), but other notable OSS (Dagger, Glide) and Google ([JSpecify](jspecify/jspecify#860)) projects are using com.vanniktech:gradle-maven-publish-plugin, which should work for now.
- This plugin requires JDK 17, Gradle 9, and Android Gradle Plugin 8.13.0.
- The updated JDK requires a newer ErrorProne.
- The newer ErrorProne has additional checks which fail and need to be disabled for now.

None of these changes are expected to impact clients though they may need to update their build tools as well. The minSdkVersion remains unchanged.

New repository secrets have been added with the needed publishing credentials. Builds are verified locally but actual SNAPSHOT uploading won't be tested until this commit is approved.

See google#464
jpd236 added a commit to google/volley that referenced this pull request Aug 6, 2026
OSSRH is shut down, so we must migrate to Sonatype Central. This in turn requires additional changes:

- A new publishing plugin that supports Sonatype Central. There is [not yet an official plugin](https://central.sonatype.org/publish/publish-portal-gradle/), but other notable OSS (Dagger, Glide) and Google ([JSpecify](jspecify/jspecify#860)) projects are using com.vanniktech:gradle-maven-publish-plugin, which should work for now.
- This plugin requires JDK 17, Gradle 9, and Android Gradle Plugin 8.13.0.
- The updated JDK requires a newer ErrorProne.
- The newer ErrorProne has additional checks which fail and need to be disabled for now.

None of these changes are expected to impact clients though they may need to update their build tools as well. The minSdkVersion remains unchanged.

New repository secrets have been added with the needed publishing credentials. Builds are verified locally but actual SNAPSHOT uploading won't be tested until this commit is approved.

See #464
uses: gradle/actions/setup-gradle@v6
- name: Publish conformance tests snapshot
run: ./gradlew publishConformanceTestsPublicationToSonatypeRepository --no-configuration-cache
run: ./gradlew publishConformanceTestsPublicationToMavenCentralRepository --no-configuration-cache

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Gemini suggests that this is not good.

This branch has not been deployed

No deployments
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.

2 participants