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
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
- uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: 11
# Java 17 required by Gradle
java-version: |
11
17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
Expand All @@ -44,13 +47,20 @@ jobs:

- name: Publish to Maven Central
if: ${{ !inputs.skip-deploy-maven-central }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info --no-configuration-cache
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

- name: Archive build reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: build/reports/

- name: Create GitHub Release
run: ./.github/workflows/github_release.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ nexusPublishing {
packageGroup = project.group
repositories {
sonatype {
stagingProfileId = "546ea6ce74787e"
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
}
}
}
Expand Down
Loading