Attempting to use the forked Jerkson library from https://github.com/randhindi/jerkson. Cloned a source dependency into the folder module
and defined the 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 I go to compile it gives me the following error:
sbt.ResolveException: unresolved dependency: com.codahale#jerkson;0.6.0-SNAPSHOT: not found
Any guesses here? Strangely this is the first time I've ever needed to resolve a source dependency so spare the ignorance. Thanks!
Make sure you've added this repository to your resolvers
sequence in your Build.scala
:
resolvers ++= Seq("Codahale" at "http://repo.codahale.com")
----------UPDATE:
The repo.codahale.com contains only Jerkson jars for scala 2.9.x
Try this repo instead in order to grab a jar compatible with scala 2.10.x (which Play 2.1 uses):
https://github.com/cphylabs/jerkson
This link suggests to merely add:
"com.cloudphysics" % "jerkson_2.10" % "0.6.3"