Skip to content

Commit 30e2362

Browse files
committed
Use scalaOrganization when adding the compiler dependency
Sbt has a setting for controlling the Scala organization, and it allows people to use the Typelevel compiler, for instance. We use the same mechanism in Hydra, and this will allow everyone to use the same benchmark code.
1 parent d0f038e commit 30e2362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ lazy val compilation = addJmh(project).settings(
3636
// We should be able to switch this project to a broad range of Scala versions for comparative
3737
// benchmarking. As such, this project should only depend on the high level `MainClass` compiler API.
3838
description := "Black box benchmark of the compiler",
39-
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
39+
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value,
4040
mainClass in (Jmh, run) := Some("scala.bench.ScalacBenchmarkRunner")
4141
).settings(addJavaOptions).dependsOn(infrastructure)
4242

4343
lazy val micro = addJmh(project).settings(
4444
description := "Finer grained benchmarks of compiler internals",
45-
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
45+
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value
4646
).settings(addJavaOptions).dependsOn(infrastructure)
4747

4848
lazy val jvm = addJmh(project).settings(

0 commit comments

Comments
 (0)