Skip to content

Commit

Permalink
sbt 1.7 resolver deprecations
Browse files Browse the repository at this point in the history
Also remove publishTo, already handled by sbt-ci-release
  • Loading branch information
bjaglin committed Sep 20, 2022
1 parent 480cda1 commit 4ce3f4a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {

override def globalSettings: Seq[Def.Setting[_]] = List(
stableVersion := (ThisBuild / version).value.replaceFirst("\\+.*", ""),
resolvers ++= List(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("public"),
resolvers ++=
Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("public") :+
Resolver.mavenLocal
),
,
Test / testOptions += Tests.Argument("-oD"),
updateOptions := updateOptions.value.withCachedResolution(true),
ThisBuild / watchTriggeredMessage := Watch.clearScreenOnTrigger,
Expand Down Expand Up @@ -212,10 +212,6 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
// would more readable, but it would also affect remote (sonatype) publishing.
publishLocal / packagedArtifacts :=
Classpaths.packaged(Seq(Compile / packageBin)).value,
publishTo := Some {
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots
else Opts.resolver.sonatypeStaging
},
scmInfo := Some(
ScmInfo(
url("https://github.com/scalacenter/scalafix"),
Expand Down

0 comments on commit 4ce3f4a

Please sign in to comment.