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.