From 599e2292cc138c817b8cde06c09712c4abe580bb Mon Sep 17 00:00:00 2001 From: claudiu-muresan-pfa Date: Mon, 26 May 2025 10:50:29 +0300 Subject: [PATCH] fix: ci release publish after upgrading ci-release-plugin to v1.11.0 --- .github/workflows/release.yml | 1 + build.sbt | 2 ++ project/plugins.sbt | 4 +--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cdbb093..bea49eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,3 +23,4 @@ jobs: PGP_SECRET: ${{ secrets.PGP_SECRET }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + CI_SONATYPE_RELEASE: sonatypeBundleRelease diff --git a/build.sbt b/build.sbt index ab6ccfd..3c6961e 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,5 @@ import sbt.Keys.{crossScalaVersions, scalacOptions} +import xerial.sbt.Sonatype._ val playJsonVersion = "3.0.4" val playVersion = "2.7.3" // test only @@ -16,6 +17,7 @@ crossScalaVersions := Seq(scala2_12, scala2_13) releaseCrossBuild := true +ThisBuild / publishTo := sonatypePublishToBundle.value ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation") // we need both Test and IntegrationTest scopes for a correct pom, see https://github.com/sbt/sbt/issues/1380 diff --git a/project/plugins.sbt b/project/plugins.sbt index 4dcacaa..df723c4 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,10 +1,8 @@ resolvers += "jgit-repo" at "https://download.eclipse.org/jgit/maven" addSbtPlugin("com.github.sbt" % "sbt-site" % "1.6.0") - addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0") - addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.7.0") - addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.0") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")