From eec224b18e2c4cf69c3c46c36cf40990e1f796d2 Mon Sep 17 00:00:00 2001 From: ckipp01 Date: Sun, 2 May 2021 22:56:55 +0200 Subject: [PATCH] Move compiler dependency out of ThisBuild scope. --- build.sbt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 735171d9..b6f0c110 100644 --- a/build.sbt +++ b/build.sbt @@ -47,10 +47,7 @@ inThisBuild( "-encoding", "utf8" ), - Global / concurrentRestrictions += Tags.limit(Tags.Test, 1), - libraryDependencies ++= Seq( - "org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile - ) + Global / concurrentRestrictions += Tags.limit(Tags.Test, 1) ) ) @@ -72,7 +69,10 @@ lazy val runtime = CrossProject( name := "scalac-scoverage-runtime", crossTarget := target.value / s"scala-${scalaVersion.value}", crossVersion := CrossVersion.full, - libraryDependencies += "org.scalatest" %%% "scalatest" % scalatestVersion % Test + libraryDependencies ++= Seq( + "org.scalatest" %%% "scalatest" % scalatestVersion % Test, + "org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile + ) ) .jvmSettings( Test / fork := true @@ -95,7 +95,8 @@ lazy val plugin = crossVersion := CrossVersion.full, libraryDependencies ++= Seq( "org.scala-lang.modules" %% "scala-xml" % "1.3.0", - "org.scalatest" %% "scalatest" % scalatestVersion % Test + "org.scalatest" %% "scalatest" % scalatestVersion % Test, + "org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile ) ) .settings(