Skip to content

Commit

Permalink
Only add scala-compat dep for supported Scalas
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Aug 9, 2023
1 parent e05b739 commit 065372c
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 065372c

Please sign in to comment.