Closed nemoo closed 1 year ago
Same issue with scalatags and fastparse in newer sbt versions.
Same issue for me with scalatags and fastparse. I've been looking into libraryDependencySchemes but there is precious little documentation on the web. A search at scala-sbt.org turns up nothing. What I have found suggests that adding libraryDependencySchemes += "com.lihaoyi" %% "geny" % VersionScheme.Always
should do it, but I haven't gotten it to work.
Update on the above: It appears that libraryDependencySchemes
works on the JVM but I'm using the combination in a ScalaJS + JVM project. I'm just getting the error for the ScalaJS side of things. See my StackOverflow post at https://stackoverflow.com/questions/75229578/how-to-use-sbts-librarydependencyscheme-key
I did more work to confirm an SBT bug. libraryDependencySchemes
can serve as a workaround to this library conflict in a JVM project but does not work in a Scala.JS project. See my bug report.
Here's a sketch of my work-around:
build.sc
, I changed:
-val scala213 = "2.13.6"
-val scalaJS1 = "1.7.1"
+val scala213 = "2.13.10"
+val scalaJS1 = "1.12.0"
and
- ivy"com.lihaoyi::sourcecode::0.2.3",
- ivy"com.lihaoyi::geny::0.6.10"
+ ivy"com.lihaoyi::sourcecode::0.3.0",
+ ivy"com.lihaoyi::geny::1.0.0"
./mill "fastparse.js[2.13.10].publishLocal"
and ./mill "fastparse.js[2.13.10,1.12.0].publishLocal"
Fixed in #271
SBT version is 1.8.0.
Here is build.sbt:
The error: