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/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 { 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 {