Migrate to Sonatype Central Portal (#1958)

This commit is contained in:
Jake Wharton
2025-06-12 16:04:04 -04:00
committed by GitHub
parent 407ea8791c
commit 7339e09bee
4 changed files with 10 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ jobs:
if: github.repository == 'square/moshi' && github.ref == 'refs/heads/master' && matrix.kotlin-test-mode == 'reflect'
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME_COM_SQUAREUP }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD_COM_SQUAREUP }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SECRET_PASSPHRASE }}

View File

@@ -1,6 +1,11 @@
Change Log
==========
## Unreleased
* In-development snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/.
## Version 1.15.2
_2024-12-05_

View File

@@ -1137,7 +1137,7 @@ or Gradle:
implementation("com.squareup.moshi:moshi:1.15.2")
```
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
Snapshots of the development version are available in [the Central Portal Snapshots repository][snap].
R8 / ProGuard
@@ -1168,7 +1168,7 @@ License
[dl]: https://search.maven.org/classic/remote_content?g=com.squareup.moshi&a=moshi&v=LATEST
[snap]: https://oss.sonatype.org/content/repositories/snapshots/com/squareup/moshi/
[snap]: https://central.sonatype.com/repository/maven-snapshots/
[okio]: https://github.com/square/okio/
[okhttp]: https://github.com/square/okhttp/
[gson]: https://github.com/google/gson/

View File

@@ -130,7 +130,7 @@ allprojects {
plugins.withId("com.vanniktech.maven.publish.base") {
configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.S01)
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
signAllPublications()
pom {
description.set("A modern JSON API for Android and Java")