scala - Play! 2.1 / Why isn't my Jerkson dependency resolved? -
attempting use forked jerkson library https://github.com/randhindi/jerkson. cloned source dependency folder module
, defined following:
object applicationbuild extends build { val appname = "coolapp" val appversion = "1.0-snapshot" lazy val jerkson = project( id = "jerkson", base = file("module"), settings = seq( name := "jerkson", organization := "com.codahale", version := "0.6.0-snapshot", scalaversion := "2.10.0" ) ) val appdependencies = seq( "com.codahale" % "jerkson" % "0.6.0-snapshot", "jp.t2v" %% "play2.auth" % "0.9", "jp.t2v" %% "play2.auth.test" % "0.9" % "test", "org.ocpsoft.prettytime" % "prettytime" % "1.0.8.final", "com.typesafe" %% "play-plugins-redis" % "2.1-1-rc2", "net.databinder.dispatch" %% "dispatch-core" % "0.10.0" ) // resolvers follow }
however, when go compile gives me following error:
sbt.resolveexception: unresolved dependency: com.codahale#jerkson;0.6.0-snapshot: not found
any guesses here? strangely first time i've ever needed resolve source dependency spare ignorance. thanks!
make sure you've added repository resolvers
sequence in build.scala
:
resolvers ++= seq("codahale" @ "http://repo.codahale.com")
----------update:
the repo.codahale.com contains jerkson jars scala 2.9.x
try repo instead in order grab jar compatible scala 2.10.x (which play 2.1 uses):
https://github.com/cphylabs/jerkson
this link suggests merely add:
"com.cloudphysics" % "jerkson_2.10" % "0.6.3"
Comments
Post a Comment