diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cd5a096d..1c2fea214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -256,6 +256,7 @@ jobs: run: | echo "RELEASE_VERSION=$RELEASE_VERSION" .github/scripts/release-snapshot.sh + gradle --debug publish - name: Create release in GitHub and OSSRH if: needs.workflow_config.outputs.do_release == 'true' diff --git a/build.gradle.kts b/build.gradle.kts index eb03a09d3..86d93bd06 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -118,10 +118,9 @@ publishing { repositories { maven { name = "OSSRH" - // val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - // val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - // url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) - url = uri("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/" + url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) credentials { username = System.getenv("OSSRH_USERNAME") password = System.getenv("OSSRH_PASSWORD") diff --git a/plantuml-mit/build.gradle.kts b/plantuml-mit/build.gradle.kts index f9a5afd76..4521301b1 100644 --- a/plantuml-mit/build.gradle.kts +++ b/plantuml-mit/build.gradle.kts @@ -147,10 +147,9 @@ publishing { repositories { maven { name = "OSSRH" - // val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - // val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - // url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) - url = uri("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/" + url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) credentials { username = System.getenv("OSSRH_USERNAME") password = System.getenv("OSSRH_PASSWORD")