Closed rtimush closed 5 years ago
Maybe we can provide a flavor of .dependOn(...)
that can specify a specific row/platform.
For now, I found a verbose workaround to specify dependencies on the generated subprojects:
lazy val coreConfigIntegration12_212 = coreConfigIntegration.crossLib("Config1.2")("2.12.8").dependsOn(core.jvm("2.12.8")
lazy val coreConfigIntegration12_211 = coreConfigIntegration.crossLib("Config1.2")("2.11.12").dependsOn(core.jvm("2.11.12")
...
I remember in some other cross-building plugin there was a concept of cross-building "axes". With this concept dependsOn
could select a dependency that has a matching subset of axes (like here coreConfigIntegration
has a "platform" and a "config" axes, and the core
project has only "platform").
It would be interesting to explore that concept.
If I understand correctly, at the moment if one project depends on another they should use the same suffix ids. This makes the following scenario impossible:
The
core
project is cross-build for different scala versions, and thecoreConfigIntegration
project should use the matching scala version. It would be nice if this was supported.