forked from loafle/openapi-generator-original
fixed scala-reflect library inclusion
This commit is contained in:
parent
bb3bd0d357
commit
773a6b50eb
18
build.sbt
18
build.sbt
@ -5,15 +5,17 @@ organization := "com.wordnik"
|
|||||||
|
|
||||||
name := "swagger-codegen"
|
name := "swagger-codegen"
|
||||||
|
|
||||||
version := "2.0.11"
|
version := "2.0.13"
|
||||||
|
|
||||||
scalaVersion := "2.10.0"
|
scalaVersion := "2.10.0"
|
||||||
|
|
||||||
|
crossVersion := CrossVersion.full
|
||||||
|
|
||||||
javacOptions ++= Seq("-target", "1.6", "-source", "1.6", "-Xlint:unchecked", "-Xlint:deprecation")
|
javacOptions ++= Seq("-target", "1.6", "-source", "1.6", "-Xlint:unchecked", "-Xlint:deprecation")
|
||||||
|
|
||||||
scalacOptions ++= Seq("-optimize", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
|
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(
|
libraryDependencies ++= Seq(
|
||||||
"org.json4s" %% "json4s-jackson" % "3.2.5",
|
"org.json4s" %% "json4s-jackson" % "3.2.5",
|
||||||
@ -28,8 +30,16 @@ libraryDependencies ++= Seq(
|
|||||||
libraryDependencies <+= scalaVersion {
|
libraryDependencies <+= scalaVersion {
|
||||||
case v if v.startsWith("2.9") =>
|
case v if v.startsWith("2.9") =>
|
||||||
"org.fusesource.scalate" % "scalate-core_2.9" % "1.6.1"
|
"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"
|
"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 {
|
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
|
publishMavenStyle := true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user