import xml.Group import AssemblyKeys._ organization := "com.wordnik" name := "swagger-codegen" version := "2.0.3-SNAPSHOT" scalaVersion := "2.9.2" javacOptions ++= Seq("-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.10.0") libraryDependencies ++= Seq( "org.json4s" %% "json4s-jackson" % "3.2.4", "io.backchat.inflector" %% "scala-inflector" % "1.3.5", "commons-io" % "commons-io" % "2.3", "org.rogach" %% "scallop" % "0.8.1", "junit" % "junit" % "4.11" % "test", "org.scalatest" %% "scalatest" % "1.9.1" % "test" ) 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") => "org.fusesource.scalate" %% "scalate-core" % "1.6.1" } packageOptions <+= (name, version, organization) map { (title, version, vendor) => Package.ManifestAttributes( "Created-By" -> "Simple Build Tool", "Built-By" -> System.getProperty("user.name"), "Build-Jdk" -> System.getProperty("java.version"), "Specification-Title" -> title, "Specification-Version" -> version, "Specification-Vendor" -> vendor, "Implementation-Title" -> title, "Implementation-Version" -> version, "Implementation-Vendor-Id" -> vendor, "Implementation-Vendor" -> vendor ) } publishTo <<= (version) { version: String => if (version.trim.endsWith("SNAPSHOT")) Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots") else Some("Sonatype Nexus Releases" at "https://oss.sonatype.org/content/repositories/releases") } credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") homepage := Some(new URL("https://github.com/wordnik/swagger-codegen")) parallelExecution in Test := false startYear := Some(2009) licenses := Seq(("Apache License 2.0", new URL("http://www.apache.org/licenses/LICENSE-2.0.html"))) pomExtra <<= (pomExtra, name, description) {(pom, name, desc) => pom ++ Group( scm:git:git@github.com:wordnik/swagger-codegen.git scm:git:git@github.com:wordnik/swagger-codegen.git https://github.com/wordnik/swagger-codegen github https://github.com/wordnik/swagger-codegen/issues rpidikiti Ramesh Pidikiti ramesh@wordnik.com ayush Ayush Gupts ayush@glugbot.com fehguy Tony Tam fehguy@gmail.com casualjim Ivan Porto Carrero http://flanders.co.nz/ )} assemblySettings