From 54b80b6a1194f41d757da76d7a316e3d33d57daa Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Sun, 10 Mar 2024 07:04:23 +0100 Subject: [PATCH] fix(build): Set Sonatype repo url in build file Release failed when initializing the nexus staging repository: Expected URL scheme 'http' or 'https' but was 'file'. It looks like the property was not read from release.yml. Hard-coding it in the build file instead. --- .github/workflows/release.yml | 1 - build.gradle | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ca948170..5f456e0af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,6 @@ jobs: ORG_GRADLE_PROJECT_sonatypeOssUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypeOssPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeOssStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} - ORG_GRADLE_PROJECT_sonatypeOssRepo: 'https://s01.oss.sonatype.org/service/local/' SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} with: diff --git a/build.gradle b/build.gradle index 224ef345d..5d8703e4d 100644 --- a/build.gradle +++ b/build.gradle @@ -70,10 +70,9 @@ if (isReleaseVersion) { String ossUser = project.findProperty('sonatypeOssUsername') ?: '' String ossPass = project.findProperty('sonatypeOssPassword') ?: '' String ossStagingProfileId = project.findProperty('sonatypeOssStagingProfileId') ?: '' - String ossRepo = project.findProperty('sonatypeOssRepo') ?: '' repositories { sonatype { - nexusUrl = uri(ossRepo) + nexusUrl = uri('https://s01.oss.sonatype.org/service/local/') username = ossUser password = ossPass stagingProfileId = ossStagingProfileId