com-lihaoyi/cask

Ammonite cannot download cask

gbersac opened this issue · 1 comments

If i run the following file with ammonite (amm -w sdk_ui_server.sc):

interp.load.ivy("com.lihaoyi" %% "cask" % "0.5.0")

@

object StaticFiles extends cask.MainRoutes{

  @cask.staticFiles("/identity-ui.js")
  def staticFileRoutes() = "/Users/guillaumebersac/projects/identity-web-ui-sdk/umd/identity-ui.js"

  initialize()
}

I get the following error:

ompiling /Users/guillaumebersac/projects/sdk_ui_server.sc
java.lang.Exception: Failed to resolve ivy dependencies:Error downloading com.lihaoyi:cask_2.12:0.5.0
  not found: /Users/guillaumebersac/.ivy2/local/com.lihaoyi/cask_2.12/0.5.0/ivys/ivy.xml
  not found: https://repo1.maven.org/maven2/com/lihaoyi/cask_2.12/0.5.0/cask_2.12-0.5.0.pom
  ammonite.interp.Interpreter$DefaultLoadJar.ivy(Interpreter.scala:663)
  ammonite.$file.sdk_ui_server$.<init>(sdk_ui_server.sc:1)
  ammonite.$file.sdk_ui_server$.<clinit>(sdk_ui_server.sc)

Note: if I replace the first line by interp.load.ivy("com.typesafe.akka" %% "akka-stream-kafka" % "0.22"), it works as expected, so it looks like a cask related issue.

Looks like cask isn't published for Scala 2.12. Could you upgrade to 2.13? Is should be available for that version (see https://search.maven.org/artifact/com.lihaoyi/cask_2.13)