Skip to content

Commit

Permalink
replaced deprecated publishTo setting (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
barkhorn authored Jul 1, 2023
1 parent ef468c7 commit 78ff2c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publishing.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ThisBuild / version := {

ThisBuild / isSnapshot := version.value.endsWith("-SNAPSHOT")

ThisBuild / publishTo := Some(
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging
)
ThisBuild / publishTo := {
if (isSnapshot.value) Opts.resolver.sonatypeOssSnapshots.headOption else Some(Opts.resolver.sonatypeStaging)
}
ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)
ThisBuild / publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)

Expand Down

0 comments on commit 78ff2c0

Please sign in to comment.