com-lihaoyi / cask

Cask: a Scala HTTP micro-framework. Cask makes it easy to set up a website, backend server, or REST API using Scala
https://com-lihaoyi.github.io/cask/
Other
527 stars 55 forks source link

cask_3 depends on castor_2.13 #58

Closed vincenzobaz closed 2 years ago

vincenzobaz commented 2 years ago

Using cask 0.7.11 in a Scala 3 projects results in the following compilation error:

[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/home/vincenzo/Desktop/scala3-full-stack-example/"), "webserver"):
[error]    com.lihaoyi:sourcecode _3, _2.13

The dependency tree shows that cask_3:0.7.11 depends on castor_2.13:0.1.7 which itself depends on sourcecode_2.13:0.2.1:

[info]   +-com.lihaoyi:cask_3:0.7.11
[info]   | +-com.lihaoyi:cask-util_3:0.7.11
[info]   | | +-com.lihaoyi:castor_2.13:0.1.7
[info]   | | | +-com.lihaoyi:sourcecode_2.13:0.2.1

This could be fixed by upgrading cask-util to depend on castor 1.8 which was published for Scala 3