diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4eb2c66..9de7ed7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 603c41c..49c289f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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_ diff --git a/README.md b/README.md index 60ca866..1701043 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/build.gradle.kts b/build.gradle.kts index a90a284..26c8d2d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -130,7 +130,7 @@ allprojects { plugins.withId("com.vanniktech.maven.publish.base") { configure { - publishToMavenCentral(SonatypeHost.S01) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) signAllPublications() pom { description.set("A modern JSON API for Android and Java")