portable-scala/sbt-crossproject

Modules were resolved with conflicting cross-version suffixes in sbt plugin

igorfialko opened this issue · 2 comments

steps

sbt version: 1.3.4

problem

Sub project which is an sbt module can not be compiled on 2.13.1.
https://github.com/igorfialko/crossProjectBug

expectation

It compiles fine in 2.13.1

notes

sbt/sbt#5360

[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/fastparseIncompat/"), "projectB"):
[error]    com.lihaoyi:sourcecode _2.12, _2.13
[error]    com.lihaoyi:fastparse _2.13, _2.12
[error] stack trace is suppressed; run last projectB / update for the full output
[error] (projectB / update) Conflicting cross-version suffixes in: com.lihaoyi:sourcecode, com.lihaoyi:fastparse
sjrd commented

An sbt plugin cannot compile on 2.13.x, since sbt and the sbt API are only compiled for 2.12.x.

Besides, this has nothing to do with sbt-crossproject. I'm pretty sure you could reproduce this with a normal project, so I'm going to close this issue here.

@sjrd Thanks for the explanation!