mirror of https://github.com/sbt/sbt.git
Problem ------- In sbt 1, platform cross building is implemented using in the user-land using `%%%` operator, which clevery handles both Scala cross building and appending platform suffix like sjs1. However, in general symbolic `%%%` is confusing, and hard to explain. Solution -------- In sbt 2, we should subsume the idea of platform cross building, so `%%` can act as the current `%%%` operator. This adds a new setting called `platform`, which defaults to `Platform.jvm` by default. When a subprojects sets it to `Platform.sjs1`, `ModuleID`s defined using `%%` operator will inject the platform suffix `_sjs1` **in addition** to the Scala binary suffix `_2.13` etc. Note: Explicit JVM dependencies will now require `.platform(Platform.jvm)`. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||