Skip to content

Commit 773a6b5

Browse files
committed
fixed scala-reflect library inclusion
1 parent bb3bd0d commit 773a6b5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

build.sbt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ organization := "com.wordnik"
55

66
name := "swagger-codegen"
77

8-
version := "2.0.11"
8+
version := "2.0.13"
99

1010
scalaVersion := "2.10.0"
1111

12+
crossVersion := CrossVersion.full
13+
1214
javacOptions ++= Seq("-target", "1.6", "-source", "1.6", "-Xlint:unchecked", "-Xlint:deprecation")
1315

1416
scalacOptions ++= Seq("-optimize", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
1517

16-
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")
18+
//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")
1719

1820
libraryDependencies ++= Seq(
1921
"org.json4s" %% "json4s-jackson" % "3.2.5",
@@ -28,8 +30,16 @@ libraryDependencies ++= Seq(
2830
libraryDependencies <+= scalaVersion {
2931
case v if v.startsWith("2.9") =>
3032
"org.fusesource.scalate" % "scalate-core_2.9" % "1.6.1"
31-
case v if v.startsWith("2.10") =>
33+
case v if v.startsWith("2.10") => {
3234
"org.fusesource.scalate" %% "scalate-core" % "1.6.1"
35+
}
36+
}
37+
38+
libraryDependencies ++= {
39+
scalaVersion.toString match {
40+
case v if v.startsWith("2.10") => Seq("org.scala-lang" % "scala-reflect" % v)
41+
case _ => Seq()
42+
}
3343
}
3444

3545
packageOptions <+= (name, version, organization) map {
@@ -56,7 +66,7 @@ publishTo <<= (version) { version: String =>
5666
}
5767

5868

59-
//publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
69+
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
6070

6171

6272
publishMavenStyle := true

0 commit comments

Comments
 (0)