Skip to content

Commit

Permalink
Merge pull request #1678 from scalacenter/resolver-deprecations
Browse files Browse the repository at this point in the history
sbt 1.7 resolver deprecations
  • Loading branch information
bjaglin committed Sep 20, 2022
2 parents e3d4b24 + 6e6dcb0 commit 449a06a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions project/ScalafixBuild.scala
Expand Up @@ -127,11 +127,10 @@ 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"),
Resolver.mavenLocal
),
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 @@ -230,10 +229,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 449a06a

Please sign in to comment.