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

2

8

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

Egis answered 27/8, 2014 at 16:11 Comment(1)
@applicius nailed it, below.Egis
T
1

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

"org.playframework.anorm" %% "anorm" % "2.6.2"
Tulatulip answered 6/6, 2018 at 18:21 Comment(0)
O
11

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.

Obcordate answered 27/8, 2014 at 18:4 Comment(4)
Yes, i think that was one of the examples i found via Google. It doesn't work: [warn] Host repo.typeseafe.com not found. url=http://repo.typeseafe.com/typesafe/releases/com/typesafe/play/anorm_2.11/2.3.2/anorm_2.11-2.3.2.pom [info] You probably access the destination server through a proxy server that is not well configured. sbt.ResolveException: unresolved dependency: com.typesafe.play#anorm_2.11;2.3.2: not foundEgis
It does work, so your issue is elsewhere. travis-ci.org/cchantep/acolyte/builds/31466513 . Check your network config and/or possible HTTP proxy.Obcordate
I created a build.sbt containing only this dependency, and pasted the results above, in my question.Egis
Maybe you should write repo.typesafe.com (as in answer), instead of repo.typeseafe.com.Obcordate
T
1

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

"org.playframework.anorm" %% "anorm" % "2.6.2"
Tulatulip answered 6/6, 2018 at 18:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.