The format for spray-json dependency is:
"io.spray" %% "spray-json" % "1.2.5"
Using %%
ensures you get the right version for the version of Scala you are using.
Spray doesn't use one of the default repositories for distribution of the library, so you also have to specify that one. The settings with that then become:
val main = play.Project(appName, appVersion, appDependencies).settings(
resolvers += "spray" at "http://repo.spray.io/",
libraryDependencies += "io.spray" %% "spray-json" % "1.2.5"
)