Skip to content

Commit

Permalink
Merge pull request #622 from typelevel/pr/scalac-compat-scala-versions
Browse files Browse the repository at this point in the history
Only add scala-compat dep for supported Scalas
  • Loading branch information
armanbilge authored Aug 9, 2023
2 parents e05b739 + 065372c commit a49f2aa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ object TypelevelSettingsPlugin extends AutoPlugin {
)

val scalacCompat =
Seq(CompileTime, Test).map("org.typelevel" %% "scalac-compat-annotation" % "0.1.2" % _)
if (Set("2.12", "2.13", "3").contains(scalaBinaryVersion.value))
Seq(CompileTime, Test).map(
"org.typelevel" %% "scalac-compat-annotation" % "0.1.2" % _)
else
Nil

scalacCompat ++ plugins
},
Expand Down

0 comments on commit a49f2aa

Please sign in to comment.