Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在单独的 scala 项目中使用一些 Play2 库(例如,Json API 和 WS API)。有没有办法将库添加libraryDependency到built.scala. 或者我可能需要做其他事情。
libraryDependency
built.scala
非常感谢!
要依赖 play-core,我们需要添加build.sbt:
build.sbt
scalaVersion :="2.10.0" libraryDependencies ++= Seq("play" % "play_2.10" % "2.1.0") resolvers ++= Seq("Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/")
这适用于 scala 和 play 2.1 版。此处和此处的其他链接。