Repository navigation
Conversation
(It sets up `withJavadocJar()` and `withSourcesJar()` automatically.) I used this to publish release 1.0.1. Fixes #827 (by eliminating that section entirely)
|
|
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 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 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 |
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
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
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
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
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 |
There was a problem hiding this comment.
TODO: Gemini suggests that this is not good.
(It sets up
withJavadocJar()andwithSourcesJar()automatically.)I used this to publish release 1.0.1.
Fixes #827 (by eliminating that section entirely)