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

后端 未结 2 805
花落未央
花落未央 2021-01-12 06:31

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)?

2条回答
  •  無奈伤痛
    2021-01-12 06:56

    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.

提交回复
热议问题