From bd18aa7842a4fa2a3d582e99467b83c320648286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Latorre?= Date: Tue, 28 Oct 2025 16:10:10 +0100 Subject: [PATCH 1/2] Fix snapshot generation --- .github/workflows/snapshot.yml | 2 +- mavencentral.gradle | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 9829034..de0d22a 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -24,7 +24,7 @@ jobs: NEXUS_USER: ${{ secrets.NEXUS_RELEASE_USER }} NEXUS_PASS: ${{ secrets.NEXUS_RELEASE_PASSWORD }} run: | - ./gradlew publishReleasePublicationToSnapshotsRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT + ./gradlew publishReleasePublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT plugin: runs-on: [ self-hosted-org, linux ] container: diff --git a/mavencentral.gradle b/mavencentral.gradle index 49385d7..d940def 100644 --- a/mavencentral.gradle +++ b/mavencentral.gradle @@ -17,7 +17,9 @@ publishing { username System.env.NEXUS_USER password System.env.NEXUS_PASS } - url "https://nexusng.tuenti.io/repository/maven-release-private/" + def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/" + def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl } } publications { From 2fb261dbaf667d33b9a51ae055c0e216f69a6cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Latorre?= Date: Tue, 28 Oct 2025 16:20:33 +0100 Subject: [PATCH 2/2] Fix plugin snapshot publication --- include-build/mavencentral.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include-build/mavencentral.gradle b/include-build/mavencentral.gradle index 075e419..512f718 100644 --- a/include-build/mavencentral.gradle +++ b/include-build/mavencentral.gradle @@ -8,7 +8,9 @@ publishing { username System.env.NEXUS_USER password System.env.NEXUS_PASS } - url "https://nexusng.tuenti.io/repository/maven-release-private/" + def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/" + def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl } } publications {