-->

How to declare dependency on Play's Anorm for

2019-02-16 21:34发布

问题:

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.



标签: scala sbt anorm