How to declare dependency on Play's Anorm for a standalone application?

陌路散爱 提交于 2019-12-01 00:54:45

问题


What is the current sbt syntax for using a recent version (say, 2.3 or 2.4) of Play's anorm package in standalone mode (not part of a Play application)?


回答1:


Anorm is now published as follows with no need for an additional resolver.

"org.playframework.anorm" %% "anorm" % "2.6.2"



回答2:


In build.sbt:

resolvers ++= Seq(
  "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/")

libraryDependencies ++= Seq(
  "com.typesafe.play" %% "anorm" % "2.3.6")

See example.



来源:https://stackoverflow.com/questions/25532080/how-to-declare-dependency-on-plays-anorm-for-a-standalone-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!