Skip to content

Commit 6c43b1d

Browse files
authored
Move compiler dependency out of ThisBuild scope. (#324)
1 parent f0c888a commit 6c43b1d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: build.sbt

+7-6
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ inThisBuild(
4747
"-encoding",
4848
"utf8"
4949
),
50-
Global / concurrentRestrictions += Tags.limit(Tags.Test, 1),
51-
libraryDependencies ++= Seq(
52-
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile
53-
)
50+
Global / concurrentRestrictions += Tags.limit(Tags.Test, 1)
5451
)
5552
)
5653

@@ -72,7 +69,10 @@ lazy val runtime = CrossProject(
7269
name := "scalac-scoverage-runtime",
7370
crossTarget := target.value / s"scala-${scalaVersion.value}",
7471
crossVersion := CrossVersion.full,
75-
libraryDependencies += "org.scalatest" %%% "scalatest" % scalatestVersion % Test
72+
libraryDependencies ++= Seq(
73+
"org.scalatest" %%% "scalatest" % scalatestVersion % Test,
74+
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile
75+
)
7676
)
7777
.jvmSettings(
7878
Test / fork := true
@@ -95,7 +95,8 @@ lazy val plugin =
9595
crossVersion := CrossVersion.full,
9696
libraryDependencies ++= Seq(
9797
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
98-
"org.scalatest" %% "scalatest" % scalatestVersion % Test
98+
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
99+
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Compile
99100
)
100101
)
101102
.settings(

0 commit comments

Comments
 (0)