sbt/core/src/main
Eugene Yokota 12d46e3fce Make ModuleID#cross(...) preserve existing prefix
Fixes https://github.com/sbt/sbt/issues/6280

sbt-platform-deps implements `%%%` operator in https://github.com/portable-scala/sbt-platform-deps/blob/v1.0.0/src/main/scala/org/portablescala/sbtplatformdeps/PlatformDepsBuilders.scala#L36-L43
by setting the prefix field on `sbt.librarymanagement.Binary(...)`.
Currently `.cross(...)` would wipe this out, so `%%%` and `cross(CrossVersion.for3Use2_13)` do not compose.

This changes the implementation of `.cross(...)` so it can be chained
together and it will try to preserve the prefix (and suffix) values from
the existing `crossVersion` values.
This should fix the 2.13-3.x sandwich on Scala.JS and Scala Native.
2021-01-23 15:47:33 -05:00
..
contraband Make validateProtocol return Boolean 2020-06-06 19:29:09 -04:00
contraband-scala/sbt Contraband files 2021-01-17 06:00:12 -05:00
java/sbt/internal/librarymanagement/mavenint Automatic eviction warning 2020-08-05 16:39:11 -04:00
scala/sbt Make ModuleID#cross(...) preserve existing prefix 2021-01-23 15:47:33 -05:00