From c49491b590879ee6d318cd0106fb7fbcdf65e263 Mon Sep 17 00:00:00 2001 From: Kyle Wood Date: Fri, 21 Jul 2023 20:34:49 -0500 Subject: [PATCH] Switch to PaperMC Nexus for publishing --- .github/workflows/deploy-snapshot.yml | 6 +++--- .github/workflows/deploy.yml | 6 +++--- build-logic/src/main/kotlin/codebook.gradle.kts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-snapshot.yml b/.github/workflows/deploy-snapshot.yml index 2b9fb3d..322b88a 100644 --- a/.github/workflows/deploy-snapshot.yml +++ b/.github/workflows/deploy-snapshot.yml @@ -31,7 +31,7 @@ jobs: echo "version=$project_version" >> $GITHUB_OUTPUT - name: Deploy snapshot version if: endsWith(steps.get_version.outputs.version, '-SNAPSHOT') - run: ./gradlew build publishCodebookPublicationToDenwavRepository --stacktrace + run: ./gradlew build publishCodebookPublicationToPapermcRepository --stacktrace env: - ORG_GRADLE_PROJECT_denwavUsername: ${{ secrets.DENWAV_USERNAME }} - ORG_GRADLE_PROJECT_denwavPassword: ${{ secrets.DENWAV_PASSWORD }} + ORG_GRADLE_PROJECT_papermcUsername: ${{ secrets.NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_papermcPassword: ${{ secrets.NEXUS_PASSWORD }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69d8452..d245add 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,10 +17,10 @@ jobs: - uses: gradle/gradle-build-action@v2 name: Deploy with: - arguments: build publishCodebookPublicationToDenwavRepository --stacktrace + arguments: build publishCodebookPublicationToPapermcRepository --stacktrace env: - ORG_GRADLE_PROJECT_denwavUsername: ${{ secrets.DENWAV_USERNAME }} - ORG_GRADLE_PROJECT_denwavPassword: ${{ secrets.DENWAV_PASSWORD }} + ORG_GRADLE_PROJECT_papermcUsername: ${{ secrets.NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_papermcPassword: ${{ secrets.NEXUS_PASSWORD }} - name: Get tag name id: get_tag shell: bash diff --git a/build-logic/src/main/kotlin/codebook.gradle.kts b/build-logic/src/main/kotlin/codebook.gradle.kts index d26b52c..ea57670 100644 --- a/build-logic/src/main/kotlin/codebook.gradle.kts +++ b/build-logic/src/main/kotlin/codebook.gradle.kts @@ -94,12 +94,12 @@ publishing { repositories { val url = if (isSnapshot) { - "https://repo.denwav.dev/repository/maven-snapshots/" + "https://repo.papermc.io/repository/maven-snapshots/" } else { - "https://repo.denwav.dev/repository/maven-releases/" + "https://repo.papermc.io/repository/maven-releases/" } maven(url) { - name = "denwav" + name = "papermc" credentials(PasswordCredentials::class) } }