Skip to content

Commit

Permalink
Close #254 - Add macro paradise plugin for more of older Scala versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed May 31, 2021
1 parent 8086c2d commit 9394222
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/scala/devoops/DevOopsScalaPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,28 @@ object DevOopsScalaPlugin extends AutoPlugin {
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(7)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(6)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(5)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(4)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(3)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(2)) |
(SemVer.Major(2), SemVer.Minor(11), SemVer.Patch(12)) |
(SemVer.Major(2), SemVer.Minor(11), SemVer.Patch(11)) |
(SemVer.Major(2), SemVer.Minor(10), SemVer.Patch(7)) =>
List(
compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full),
)
case (SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(1)) |
(SemVer.Major(2), SemVer.Minor(12), SemVer.Patch(0)) =>
List(
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
)
case (SemVer.Major(2), SemVer.Minor(11), SemVer.Patch(patch)) if patch >= 0 && patch <= 10 =>
List(
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
)
case (SemVer.Major(2), SemVer.Minor(10), SemVer.Patch(patch)) if patch >= 2 && patch <= 6 =>
List(
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
)
case (_, _, _) =>
List.empty[ModuleID]
}
Expand Down

0 comments on commit 9394222

Please sign in to comment.