Why is UNRESOLVED DEPENDENCIES error with com.typesafe.slick#slick_2.11;2.0.2: not found?

后端 未结 1 1649
粉色の甜心
粉色の甜心 2021-01-27 05:02

I m trying to run hello slick example from the typesafe activator I create a project in sbt when I type run it gives me following error

warn]   ::::::::::::::::         


        
相关标签:
1条回答
  • 2021-01-27 05:33

    You need the resolver to the typesafe repository:

    libraryDependencies ++= List(
      "com.typesafe.slick" %% "slick" % "2.0.2",
      "org.slf4j" % "slf4j-nop" % "1.6.4",
      "com.h2database" % "h2" % "1.3.170"
    )
    
    resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
    

    Edit:

    It seems that for scala 2.11 you need to specify the slick version to be 2.1:

    "com.typesafe.slick" %% "slick" % "2.1.0"
    
    0 讨论(0)
提交回复
热议问题