fixed scala-reflect library inclusion

This commit is contained in:
Tony Tam 2014-01-27 07:50:23 -08:00
parent bb3bd0d357
commit 773a6b50eb

View File

@ -5,15 +5,17 @@ organization := "com.wordnik"
name := "swagger-codegen"
version := "2.0.11"
version := "2.0.13"
scalaVersion := "2.10.0"
crossVersion := CrossVersion.full
javacOptions ++= Seq("-target", "1.6", "-source", "1.6", "-Xlint:unchecked", "-Xlint:deprecation")
scalacOptions ++= Seq("-optimize", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
crossScalaVersions := Seq("2.9.0", "2.9.0-1", "2.9.1", "2.9.1-1", "2.9.2", "2.9.3", "2.10.0")
//crossScalaVersions := Seq("2.9.0", "2.9.0-1", "2.9.1", "2.9.1-1", "2.9.2", "2.9.3", "2.10.0", "2.10.1", "2.10.2")
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-jackson" % "3.2.5",
@ -28,8 +30,16 @@ libraryDependencies ++= Seq(
libraryDependencies <+= scalaVersion {
case v if v.startsWith("2.9") =>
"org.fusesource.scalate" % "scalate-core_2.9" % "1.6.1"
case v if v.startsWith("2.10") =>
case v if v.startsWith("2.10") => {
"org.fusesource.scalate" %% "scalate-core" % "1.6.1"
}
}
libraryDependencies ++= {
scalaVersion.toString match {
case v if v.startsWith("2.10") => Seq("org.scala-lang" % "scala-reflect" % v)
case _ => Seq()
}
}
packageOptions <+= (name, version, organization) map {
@ -56,7 +66,7 @@ publishTo <<= (version) { version: String =>
}
//publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
publishMavenStyle := true