mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 08:45:56 +02:00
aaf471dd36447f52ead4f334a10eb2a79cdc1914
sbt 1 removes CrossVersion.binaryMapped which was used in the sbt-dotty plugin to provide a way to depend on Scala 2.x artifacts in a project that cross-compiles between Scala 2.x and Dotty (see `withDottyCompat()` in https://github.com/lampepfl/dotty/blob/master/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala). Using `binaryWith` is not enough because it only allows the user to specify a prefix and a suffix for the binary version which will always be set to `scalaBinaryVersion`. This commit introduces a new `Constant` kind of CrossVersion which allows the user to specify any string he wants as a cross-version, thus making it possible to port `withDottyCompat()` to sbt 1.
librarymanagement module for sbt
git clone --no-hardlinks --branch 0.13 sbt sbt-modules/librarymanagement
cd sbt-modules/librarymanagement
git filter-branch --index-filter 'git rm --cached -qr -- . && git reset -q $GIT_COMMIT -- ivy util/cross' --prune-empty
git reset --hard
git gc --aggressive
git prune
git cb 1.0
Languages
Scala
94.5%
Java
3.1%
Shell
1.1%
Batchfile
0.9%
Roff
0.2%
Other
0.1%