First, I tried to create a minimal working example to reproduce this error. The project is here and the build that fails is here.
The full error is:
java.io.IOException: Scala signature B has wrong version
expected: 5.0
found: 5.2 in B.class
at scala.reflect.internal.pickling.UnPickler$Scan.checkVersion(UnPickler.scala:124)
It seems that with two (or more) Scala subprojects where one of which depends on the other, Gradle runs them in parallel (as you can see here) using a different scala compiler version, causing the exception reported above.
One workaround I found for now is to set the Gradle max-workers to 1 (as you can see here)
First, I tried to create a minimal working example to reproduce this error. The project is here and the build that fails is here. The full error is:
It seems that with two (or more) Scala subprojects where one of which depends on the other, Gradle runs them in parallel (as you can see here) using a different scala compiler version, causing the exception reported above.
One workaround I found for now is to set the Gradle max-workers to 1 (as you can see here)