Commit 3a4c98a
authored
In some scenarios, specifically in cross compilation projects, sbt will
complain that `scala-library:2.13.x` and `scala-library:3.x.y` might be
imcompatible, as they are both declared `semver-spec`. See en example
here:
```scala
[error] (update) found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error]
[error] * org.scala-lang:scala-library:3.8.0-RC1-bin-SNAPSHOT (semver-spec) is selected over 2.13.0
[error] +- org.scala-lang:scala3-library_3:3.8.0-RC1-bin-SNAPSHOT (depends on 3.8.0-RC1-bin-SNAPSHOT)
[error] +- org.scala-lang.modules:scala-xml_2.13:1.2.0 (depends on 2.13.0)
```
In this PR, we change the version scheme of both `scala-library` and
`scalajs-scalalib_2.13` to `always` so that the transition between the
old stdlib structure and the new one stay invisible to the users.
In the future, when we break binary compatibility (meaning Scala 4), we
can revert this PR and have artifacts labeled with `semver-spec` as it
will be exactly that scheme.
---
The correctness was validated in #23748 locally.
[skip ci]
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
1664 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1665 | 1670 | | |
1666 | 1671 | | |
1667 | 1672 | | |
| |||
1736 | 1741 | | |
1737 | 1742 | | |
1738 | 1743 | | |
1739 | | - | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1740 | 1750 | | |
1741 | 1751 | | |
1742 | 1752 | | |
| |||
1851 | 1861 | | |
1852 | 1862 | | |
1853 | 1863 | | |
1854 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
1855 | 1870 | | |
1856 | 1871 | | |
1857 | 1872 | | |
| |||
0 commit comments