Skip to content

Commit dea9431

Browse files
committed
Migrate to Sonatype Central Portal
1 parent b505900 commit dea9431

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if: github.repository == 'square/moshi' && github.ref == 'refs/heads/master' && matrix.kotlin-test-mode == 'reflect'
3232
run: ./gradlew publish
3333
env:
34-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME_COM_SQUAREUP }}
35-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD_COM_SQUAREUP }}
34+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
35+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
3636
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }}
3737
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SECRET_PASSPHRASE }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Change Log
22
==========
33

4+
## Unreleased
5+
6+
* In-development snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/.
7+
8+
49
## Version 1.15.2
510

611
_2024-12-05_

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ or Gradle:
11371137
implementation("com.squareup.moshi:moshi:1.15.2")
11381138
```
11391139

1140-
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
1140+
Snapshots of the development version are available in [the Central Portal Snapshots repository][snap].
11411141

11421142

11431143
R8 / ProGuard
@@ -1168,7 +1168,7 @@ License
11681168

11691169

11701170
[dl]: https://search.maven.org/classic/remote_content?g=com.squareup.moshi&a=moshi&v=LATEST
1171-
[snap]: https://oss.sonatype.org/content/repositories/snapshots/com/squareup/moshi/
1171+
[snap]: https://central.sonatype.com/repository/maven-snapshots/
11721172
[okio]: https://github.com/square/okio/
11731173
[okhttp]: https://github.com/square/okhttp/
11741174
[gson]: https://github.com/google/gson/

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ allprojects {
130130

131131
plugins.withId("com.vanniktech.maven.publish.base") {
132132
configure<MavenPublishBaseExtension> {
133-
publishToMavenCentral(SonatypeHost.S01)
133+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
134134
signAllPublications()
135135
pom {
136136
description.set("A modern JSON API for Android and Java")

0 commit comments

Comments
 (0)