Skip to content

Commit eaedfa7

Browse files
committed
Prevent sbt from rewriting our dependencies
By default, sbt will try to rewrite dependencies on scala-{library,compiler,reflect} and scalap artifacts. This can have very weird consequences for us since we define our own versions of these projects.
1 parent 168efa7 commit eaedfa7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

project/Build.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ object Build {
8686
scalaSource in Test := baseDirectory.value / "test",
8787
javaSource in Compile := baseDirectory.value / "src",
8888
javaSource in Test := baseDirectory.value / "test",
89-
resourceDirectory in Compile := baseDirectory.value / "resources"
89+
resourceDirectory in Compile := baseDirectory.value / "resources",
90+
91+
// Prevent sbt from rewriting our dependencies
92+
ivyScala ~= (_ map (_ copy (overrideScalaVersion = false)))
9093
)
9194

9295
// Settings used by all dotty-compiled projects

0 commit comments

Comments
 (0)