Skip to content

Commit 687b079

Browse files
authored
Fix snapshot generation (#12)
1 parent a4ca386 commit 687b079

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
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:

include-build/mavencentral.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ publishing {
88
username System.env.NEXUS_USER
99
password System.env.NEXUS_PASS
1010
}
11-
url "https://nexusng.tuenti.io/repository/maven-release-private/"
11+
def releasesRepoUrl = "https://nexusng.tuenti.io/repository/maven-release-private/"
12+
def snapshotsRepoUrl = "https://nexusng.tuenti.io/repository/maven-snapshot-private/"
13+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
1214
}
1315
}
1416
publications {

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)