File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
sbt-dotty/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,28 @@ object DottyPlugin extends AutoPlugin {
194
194
} else {
195
195
Def .task { si }
196
196
}
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
+ }
198
219
)
199
220
}
200
221
You can’t perform that action at this time.
0 commit comments