I have seen this sample application and I am interested to use swagger on a play 2 application. So I included dependencies in my Build.scala like that project does:
val appDependencies: Seq[sbt.ModuleID] = Seq(
"com.wordnik" %% "swagger-play2-utils" % "1.1.1")
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
resolvers := Seq(
"Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
Resolver.url("swagger-core-github-repo", url("http://wordnik.github.com/repository"))(Resolver.ivyStylePatterns),
"sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases",
"sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"java-net" at "http://download.java.net/maven/2",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"))
but it gives me unresolved dependencies.
I have also tried:
"com.wordnik" % "swagger-play2-1.1.1" % "1.1.1"
because I use Play 2.1-RC1 but still it does not find it.
Does anyone know where I am wrong (I think I have some error on this last tried from above..)
From the Wordnik repo, it seems that it should be:
But since the module has been built on Play 2.0.x, I don’t know if it will work with Play 2.1