Alex Styl
11/17/2025, 2:40 PM> Failed to close staging repository, server at <https://ossrh-staging-api.central.sonatype.com/service/local/> responded with status code 400, body: Failed to process request: No objects found in the repositoryAlex Styl
11/17/2025, 2:40 PMname: Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment: maven-central
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/gradle-wrapper.properties', '**/*.gradle*', '**/gradle.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Compile
run: ./gradlew --no-daemon --console=plain assemble
- name: Detekt
run: ./gradlew --no-daemon --console=plain detekt
- name: Test
run: ./gradlew --no-daemon --console=plain jvmTest
- name: Publish to Maven Central
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew --no-daemon --console=plain publishToSonatype --max-workers 1 closeAndReleaseSonatypeStagingRepositorymbonnin
11/17/2025, 2:41 PMmbonnin
11/17/2025, 2:41 PMmbonnin
11/17/2025, 2:41 PMAlex Styl
11/17/2025, 2:41 PMmbonnin
11/17/2025, 2:42 PMmbonnin
11/17/2025, 2:42 PMAlex Styl
11/17/2025, 2:43 PMmbonnin
11/17/2025, 2:43 PMAlex Styl
11/17/2025, 2:43 PMAlex Styl
11/17/2025, 2:44 PMmbonnin
11/17/2025, 2:44 PMmbonnin
11/17/2025, 2:45 PMAlex Styl
11/17/2025, 2:45 PMmbonnin
11/17/2025, 2:45 PMmbonnin
11/17/2025, 2:46 PMmbonnin
11/17/2025, 2:47 PMmbonnin
11/17/2025, 2:47 PMmbonnin
11/17/2025, 2:47 PM-i, IIRC it shows the files being uploadedAlex Styl
11/17/2025, 2:48 PMAlex Styl
11/17/2025, 2:49 PMChris Lee
11/17/2025, 2:52 PMi dont think the issue is with the plugin. I never had this error while publishing locally.Publishing locally is very different than publishing to a repository. Local publishing is largely copying files around, whereas publishing to a repository is HTTP/API calls and all the semantics around that.
Vampire
11/17/2025, 2:54 PMThe whole staging repo thing is deprecated IIUCNot really, unless that was changed. The old infrastructure was switched off, and the publishing portal go the ability to continue use the old way to stay using the established plugins and workflows. I'm not aware those are "deprecated". They recommend not to use it as they want their new publishing portal stuff being used instead of the standard Gradle way. But this compatibility layer is afaik not deprecated and hopefully also will not.
Vampire
11/17/2025, 2:54 PMVampire
11/17/2025, 2:56 PMmbonnin
11/17/2025, 2:57 PMVampire
11/17/2025, 2:57 PMVampire
11/17/2025, 2:57 PMmbonnin
11/17/2025, 2:58 PMmbonnin
11/17/2025, 2:58 PMmbonnin
11/17/2025, 3:02 PMNo objects found in the repositoryThat sounds like a task dependency/aggregation was not setup properly and
closeAndReleaseSonatypeStagingRepository just creates an empty staging repo that is closed without even uploading filesChris Lee
11/17/2025, 3:17 PMRobert Jaros
11/17/2025, 3:34 PMBen Woodworth
11/17/2025, 7:32 PMmbonnin
11/17/2025, 8:00 PMAlex Styl
11/17/2025, 11:18 PM