force maven style publishing

This commit is contained in:
Ivan Porto Carrero 2013-06-22 22:34:21 -07:00
parent 500262bd03
commit c9614ab795
3 changed files with 18 additions and 4 deletions

View File

@ -49,12 +49,26 @@ packageOptions <+= (name, version, organization) map {
}
publishTo <<= (version) { version: String =>
val artifactory = "https://ci.aws.wordnik.com/artifactory/m2-"
if (version.trim.endsWith("SNAPSHOT"))
Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
Some("snapshots" at artifactory + "snapshots")
else
Some("Sonatype Nexus Releases" at "https://oss.sonatype.org/content/repositories/releases")
Some("releases" at artifactory + "releases")
}
//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")
//}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
homepage := Some(new URL("https://github.com/wordnik/swagger-codegen"))

View File

@ -1,2 +1,2 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.5")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.9.0")

View File

@ -204,7 +204,7 @@ class ScalaAsyncClientGenerator(cfg: SwaggerGenConfig) extends BasicGenerator {
override val modelPackage: Option[String] = Some(packageName + ".model")
override val apiPackage: Option[String] = Some(packageName + ".apis")
override val reservedWords: Set[String] = Set("type", "package", "match", "object")
override val importMapping = Map("Date" -> "org.joda.time.DateTime", "DateTimeZone" -> "org.joda.time.DateTimeZone")
override val importMapping = Map("Date" -> "org.joda.time.DateTime", "DateTimeZone" -> "org.joda.time.DateTimeZone", "Chronology" -> "org.joda.time.Chronology")
override val typeMapping = Map(
"boolean" -> "Boolean",
"string" -> "String",