Skip to content

Commit

Permalink
fix jackson incompatibility (probably)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegYch committed May 18, 2016
1 parent 59624ca commit 7d080b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions play-2.5/swagger-play2/build.sbt 100644 → 100755
@@ -1,5 +1,5 @@
name := "swagger-play2"
version := "1.6.0"
version := "1.6.0-BTG"

checksums in update := Nil

Expand All @@ -9,24 +9,25 @@ libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.6.4",
"io.swagger" % "swagger-core" % "1.5.7",
"io.swagger" %% "swagger-scala-module" % "1.0.1",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.7.3",
"com.typesafe.play" %% "routes-compiler" % "2.5.0",
"com.typesafe.play" %% "play-ebean" % "2.0.0" % "test",
"org.specs2" %% "specs2-core" % "3.6.6" % "test",
"org.specs2" %% "specs2-mock" % "3.6.6" % "test",
"org.specs2" %% "specs2-junit" % "3.6.6" % "test",
"org.mockito" % "mockito-core" % "1.9.5" % "test")

publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
publishMavenStyle := true
pomIncludeRepository := { x => false }
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
//publishTo <<= version { (v: String) =>
// val nexus = "https://oss.sonatype.org/"
// if (v.trim.endsWith("SNAPSHOT"))
// Some("snapshots" at nexus + "content/repositories/snapshots")
// else
// Some("releases" at nexus + "service/local/staging/deploy/maven2")
//}
//publishArtifact in Test := false
//publishMavenStyle := true
//pomIncludeRepository := { x => false }
//credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
organization := "io.swagger"
pomExtra := {
<url>http://swagger.io</url>
Expand Down
2 changes: 1 addition & 1 deletion play-2.5/swagger-play2/test/PlayApiListingCacheSpec.scala 100644 → 100755
Expand Up @@ -80,7 +80,7 @@ PUT /api/dog/:id testdata.DogController.add0(id:String)
swagger.get.getSwagger must beEqualTo("2.0")
swagger.get.getBasePath must beEqualTo(basePath)
swagger.get.getPaths.size must beEqualTo(7)
swagger.get.getDefinitions.size must beEqualTo(5)
swagger.get.getDefinitions.pp.size must beGreaterThanOrEqualTo(5)
swagger.get.getHost must beEqualTo(swaggerConfig.getHost)
swagger.get.getInfo.getContact.getName must beEqualTo(swaggerConfig.getContact)
swagger.get.getInfo.getVersion must beEqualTo(swaggerConfig.getVersion)
Expand Down

0 comments on commit 7d080b3

Please sign in to comment.