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

后端 未结 2 792
花落未央
花落未央 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:45

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

    "org.playframework.anorm" %% "anorm" % "2.6.2"
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题