Skip to content

Commit 4158f85

Browse files
Merge pull request #23 from fermiyon/master
Update README.md
2 parents 28c5189 + 6a6d5c9 commit 4158f85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ by:
8282
libraryDependencies += ("a" %% "b" % "c").withDottyCompat(scalaVersion.value)
8383
```
8484

85+
Or you can alternatively use:
86+
87+
```scala
88+
libraryDependencies := libraryDependencies.value.map(_.withDottyCompat(scalaVersion.value))
89+
```
90+
8591
This will have no effect when compiling with Scala 2.x, but when compiling
8692
with Dotty this will change the cross-version to a Scala 2.x one. This
8793
works because Dotty is currently retro-compatible with Scala 2.x.

0 commit comments

Comments
 (0)