Skip to content

Commit 570497b

Browse files
committed
Turn off annoying sbt warnings
1 parent c0c6b06 commit 570497b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,28 @@ object DottyPlugin extends AutoPlugin {
194194
} else {
195195
Def.task { si }
196196
}
197-
}.value
197+
}.value,
198+
199+
scalaModuleInfo := {
200+
val old = scalaModuleInfo.value
201+
if (isDotty.value) {
202+
// Turns off the warning:
203+
// [warn] Binary version (0.9.0-RC1) for dependency ...;0.9.0-RC1
204+
// [warn] in ... differs from Scala binary version in project (0.9).
205+
old.map(_.withCheckExplicit(false))
206+
} else old
207+
},
208+
209+
updateOptions := {
210+
val old = updateOptions.value
211+
if (isDotty.value) {
212+
// Turn off the warning:
213+
// circular dependency found:
214+
// ch.epfl.lamp#scala-library;0.9.0-RC1->ch.epfl.lamp#dotty-library_0.9;0.9.0-RC1->...
215+
// (This should go away once we merge dotty-library and scala-library in one artefact)
216+
old.withCircularDependencyLevel(sbt.librarymanagement.ivy.CircularDependencyLevel.Ignore)
217+
} else old
218+
}
198219
)
199220
}
200221

0 commit comments

Comments
 (0)