From 065372ce76d4882ab44598b9bbb0ee3a8d0672cf Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 9 Aug 2023 06:29:13 +0000 Subject: [PATCH] Only add scala-compat dep for supported Scalas --- .../scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala b/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala index 9ae3ed6c..8bcff431 100644 --- a/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala +++ b/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala @@ -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 },