From 773a6b50ebef55b4816bbed2e154c0b9d0337883 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Mon, 27 Jan 2014 07:50:23 -0800 Subject: [PATCH] fixed scala-reflect library inclusion --- build.sbt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 70b80d23b1a..5457e3d88c1 100644 --- a/build.sbt +++ b/build.sbt @@ -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