forked from loafle/openapi-generator-original
force maven style publishing
This commit is contained in:
parent
500262bd03
commit
c9614ab795
18
build.sbt
18
build.sbt
@ -49,12 +49,26 @@ packageOptions <+= (name, version, organization) map {
|
|||||||
}
|
}
|
||||||
|
|
||||||
publishTo <<= (version) { version: String =>
|
publishTo <<= (version) { version: String =>
|
||||||
|
val artifactory = "https://ci.aws.wordnik.com/artifactory/m2-"
|
||||||
if (version.trim.endsWith("SNAPSHOT"))
|
if (version.trim.endsWith("SNAPSHOT"))
|
||||||
Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
|
Some("snapshots" at artifactory + "snapshots")
|
||||||
else
|
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")
|
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
|
||||||
|
|
||||||
homepage := Some(new URL("https://github.com/wordnik/swagger-codegen"))
|
homepage := Some(new URL("https://github.com/wordnik/swagger-codegen"))
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.5")
|
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.9.0")
|
||||||
|
@ -204,7 +204,7 @@ class ScalaAsyncClientGenerator(cfg: SwaggerGenConfig) extends BasicGenerator {
|
|||||||
override val modelPackage: Option[String] = Some(packageName + ".model")
|
override val modelPackage: Option[String] = Some(packageName + ".model")
|
||||||
override val apiPackage: Option[String] = Some(packageName + ".apis")
|
override val apiPackage: Option[String] = Some(packageName + ".apis")
|
||||||
override val reservedWords: Set[String] = Set("type", "package", "match", "object")
|
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(
|
override val typeMapping = Map(
|
||||||
"boolean" -> "Boolean",
|
"boolean" -> "Boolean",
|
||||||
"string" -> "String",
|
"string" -> "String",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user