diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b12f54fb..ae671d6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Publish - run: ./gradlew publish closeAndReleaseSonatypeStagingRepository + run: ./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The secrets are for publishing the build artifacts to the Maven Central. diff --git a/build.gradle b/build.gradle index fd3c9b1d..9ede7af4 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,7 @@ plugins{ } group = "com.solarwinds" +version = "2.8.0" subprojects { apply plugin: "java" diff --git a/solarwinds-otel-sdk/build.gradle b/solarwinds-otel-sdk/build.gradle index 6d080949..ca79bfa6 100644 --- a/solarwinds-otel-sdk/build.gradle +++ b/solarwinds-otel-sdk/build.gradle @@ -100,7 +100,7 @@ publishing { repositories { maven { - name = "OSSRH" + name = "sonatype" url = Boolean.parseBoolean(System.getenv("SNAPSHOT_BUILD")) ? snapshotsRepoUrl : releasesRepoUrl credentials { username = System.getenv("SONATYPE_USERNAME")