chore: restore version which is still not working

This commit is contained in:
Arnaud Roques 2023-05-12 20:44:57 +02:00
parent e313ffc635
commit 9c52adf7ec
3 changed files with 7 additions and 8 deletions

View File

@ -256,6 +256,7 @@ jobs:
run: | run: |
echo "RELEASE_VERSION=$RELEASE_VERSION" echo "RELEASE_VERSION=$RELEASE_VERSION"
.github/scripts/release-snapshot.sh .github/scripts/release-snapshot.sh
gradle --debug publish
- name: Create release in GitHub and OSSRH - name: Create release in GitHub and OSSRH
if: needs.workflow_config.outputs.do_release == 'true' if: needs.workflow_config.outputs.do_release == 'true'

View File

@ -118,10 +118,9 @@ publishing {
repositories { repositories {
maven { maven {
name = "OSSRH" name = "OSSRH"
// val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
// val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
// url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials { credentials {
username = System.getenv("OSSRH_USERNAME") username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD") password = System.getenv("OSSRH_PASSWORD")

View File

@ -147,10 +147,9 @@ publishing {
repositories { repositories {
maven { maven {
name = "OSSRH" name = "OSSRH"
// val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
// val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
// url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials { credentials {
username = System.getenv("OSSRH_USERNAME") username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD") password = System.getenv("OSSRH_PASSWORD")