From a9dbb1f5a54df4d2db4a2af1fdc0d7b8df541967 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 28 Jun 2023 17:39:01 +0000 Subject: [PATCH] Also add `scalac-compat` to `Test` scope --- .../scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala b/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala index fa674853..9ae3ed6c 100644 --- a/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala +++ b/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala @@ -64,9 +64,10 @@ object TypelevelSettingsPlugin extends AutoPlugin { "org.typelevel" % "kind-projector" % "0.13.2" cross CrossVersion.full) ) - Seq( - "org.typelevel" %% "scalac-compat-annotation" % "0.1.2" % CompileTime - ) ++ plugins + val scalacCompat = + Seq(CompileTime, Test).map("org.typelevel" %% "scalac-compat-annotation" % "0.1.2" % _) + + scalacCompat ++ plugins }, // Adapted from Rob Norris' post at https://tpolecat.github.io/2014/04/11/scalac-flags.html