Publish to Sonatype Central Portal (#883)

This commit is contained in:
Jake Wharton
2025-05-12 13:41:52 -04:00
committed by GitHub
parent f15cc39bfd
commit bc4fa91833
5 changed files with 8 additions and 7 deletions

View File

@ -342,8 +342,8 @@ jobs:
- run: ./gradlew publish - run: ./gradlew publish
env: env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }}
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4

View File

@ -31,8 +31,8 @@ jobs:
- run: ./gradlew publish - run: ./gradlew publish
env: env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Extract release notes - name: Extract release notes

View File

@ -9,6 +9,7 @@ Changed:
For terminal size, a platform-specific fallback exists which will attempt to still correctly report the size, but asynchronously. For terminal size, a platform-specific fallback exists which will attempt to still correctly report the size, but asynchronously.
- Terminal theme is now always queried for an initial value regardless of whether the terminal supports sending theme changes. - Terminal theme is now always queried for an initial value regardless of whether the terminal supports sending theme changes.
- Java 11 is now the minimum-supported JVM version. - Java 11 is now the minimum-supported JVM version.
- In-development snapshots of Mosaic are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/.
Fixed: Fixed:
- Windows now reports the terminal size correctly. Previously it reported the buffer size instead of the window size. - Windows now reports the terminal size correctly. Previously it reported the buffer size instead of the window size.

View File

@ -72,14 +72,14 @@ dependencies {
Documentation is available at [jakewharton.github.io/mosaic/docs/0.x/](https://jakewharton.github.io/mosaic/docs/0.x/). Documentation is available at [jakewharton.github.io/mosaic/docs/0.x/](https://jakewharton.github.io/mosaic/docs/0.x/).
<details> <details>
<summary>Snapshots of the development version are available in Sonatype's snapshots repository.</summary> <summary>Snapshots of the development version are available in the Central Portal Snapshots repository.</summary>
<p> <p>
```groovy ```groovy
repository { repository {
mavenCentral() mavenCentral()
maven { maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/' url 'https://central.sonatype.com/repository/maven-snapshots/'
} }
} }
dependencies { dependencies {

View File

@ -1,7 +1,7 @@
GROUP=com.jakewharton.mosaic GROUP=com.jakewharton.mosaic
VERSION_NAME=0.18.0-SNAPSHOT VERSION_NAME=0.18.0-SNAPSHOT
SONATYPE_HOST=DEFAULT SONATYPE_HOST=CENTRAL_PORTAL
SONATYPE_AUTOMATIC_RELEASE=true SONATYPE_AUTOMATIC_RELEASE=true
RELEASE_SIGNING_ENABLED=true RELEASE_SIGNING_ENABLED=true