Skip to content

Commit bd18aa7

Browse files
committed
Fix snapshot generation
1 parent a4ca386 commit bd18aa7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
NEXUS_USER: ${{ secrets.NEXUS_RELEASE_USER }}
2525
NEXUS_PASS: ${{ secrets.NEXUS_RELEASE_PASSWORD }}
2626
run: |
27-
./gradlew publishReleasePublicationToSnapshotsRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
27+
./gradlew publishReleasePublicationToMavenRepository -DLIBRARY_VERSION=${{ github.event.inputs.snapshot-version }}-SNAPSHOT
2828
plugin:
2929
runs-on: [ self-hosted-org, linux ]
3030
container:

mavencentral.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ publishing {
1717
username System.env.NEXUS_USER
1818
password System.env.NEXUS_PASS
1919
}
20-
url "https://nexusng.tuenti.io/repository/maven-release-private/"
20+
def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/"
21+
def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/"
22+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
2123
}
2224
}
2325
publications {

0 commit comments

Comments
 (0)