Skip to content

Commit

Permalink
Merge pull request #2044 from scalacenter/sbt-scalafix-cli3
Browse files Browse the repository at this point in the history
use cli_3.x.y to inspect Scala 3 sources
  • Loading branch information
bjaglin authored Aug 23, 2024
2 parents 8f0de24 + 90edc53 commit 7f16b80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,12 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
.get(extracted.structure.data)
.get

def asSuffix(scalaVersion: String) = scalaVersion.replace(".", "_")
def asSuffix(scalaVersion: String) =
scalaVersion.replaceAll("[\\.-]", "_")

s"all cli${asSuffix(scala212)}/publishLocalTransitive cli${asSuffix(scala213)}/publishLocalTransitive interfaces/publishLocal" ::
cliScalaVersions
.map(sv => s"cli${asSuffix(sv)}/publishLocalTransitive")
.mkString("all ", " ", " interfaces/publishLocal") ::
"reload plugins" ::
s"""set dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "$v"""" :: // as documented in installation.md
"session save" ::
Expand Down
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.4")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.1.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1+21-8f7d5d40-SNAPSHOT")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.10.0")

// https://github.com/scala/bug/issues/12632
Expand Down

0 comments on commit 7f16b80

Please sign in to comment.