Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
cache-read-only: true
add-job-summary: always

- name: Publish release to Sonatype
- name: Publish release to central portal
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
SONATYPE_USER: "${{ secrets.SONATYPE_USER }}"
SONATYPE_TOKEN: "${{ secrets.SONATYPE_TOKEN }}"
CENTRAL_USER: "${{ secrets.CENTRAL_USER }}"
CENTRAL_PASSWORD: "${{ secrets.CENTRAL_PASSWORD }}"
SIGNING_KEY: "${{ secrets.SIGNING_KEY }}"
SIGNING_KEY_PASSWORD: "${{ secrets.SIGNING_KEY_PASSWORD }}"
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ jobs:
echo "STATUS=release" >> $GITHUB_ENV
fi

- name: Publish snapshot to Sonatype
- name: Publish snapshot to central portal
if: ${{ github.event_name == 'push' && env.STATUS != 'release' && startsWith(github.ref, 'refs/heads/nightly') }}
run: ./gradlew publish
env:
SONATYPE_USER: "${{ secrets.SONATYPE_USER }}"
SONATYPE_TOKEN: "${{ secrets.SONATYPE_TOKEN }}"
CENTRAL_USER: "${{ secrets.CENTRAL_USER }}"
CENTRAL_PASSWORD: "${{ secrets.CENTRAL_PASSWORD }}"

- name: Prepare artifacts zip
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ To add the CloudNet dependency using maven (replace `%version%` with the latest

## Snapshots

Snapshots for CloudNet are build off the `nightly` branch and are available from the sonatype snapshot repository:
`https://s01.oss.sonatype.org/content/repositories/snapshots/`. You can declare a dependency on CloudNet as shown above
Snapshots for CloudNet are build off the `nightly` branch and are available from the central portal snapshot repository:
`https://central.sonatype.com/repository/maven-snapshots/`. You can declare a dependency on CloudNet as shown above
just append the `-SNAPSHOT` suffix to the version.

## Links
Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ tasks.register("globalJavaDoc", Javadoc::class) {
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))

username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_TOKEN"))
username.set(System.getenv("CENTRAL_USER"))
password.set(System.getenv("CENTRAL_PASSWORD"))
}
}

Expand Down
Loading