openapi-generator/samples/server/petstore/scalatra/build.sbt

67 lines
2.1 KiB
Plaintext
Raw Normal View History

2015-06-07 15:56:08 +00:00
// put this at the top of the file
2014-01-21 17:40:42 +00:00
import NativePackagerKeys._
packageArchetype.java_server
2012-09-21 06:04:21 +00:00
2013-03-21 04:35:41 +00:00
assemblySettings
2012-08-29 16:27:55 +00:00
2014-02-19 23:08:06 +00:00
scalariformSettings
2013-03-21 04:38:23 +00:00
organization := "com.wordnik"
2013-03-21 04:35:41 +00:00
2015-06-07 15:56:08 +00:00
seq(webSettings: _*)
2013-03-21 04:35:41 +00:00
mainClass in assembly := Some("JettyMain")
2013-03-21 04:38:23 +00:00
name := "scalatra-sample"
2012-08-29 16:27:55 +00:00
version := "0.1.0-SNAPSHOT"
2015-02-06 19:36:58 +00:00
scalaVersion := "2.11.2"
scalacOptions += "-language:postfixOps"
2012-08-29 16:27:55 +00:00
libraryDependencies ++= Seq(
2015-06-07 15:56:08 +00:00
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"org.scalatra" %% "scalatra" % "2.3.0.RC3",
"org.scalatra" %% "scalatra-scalate" % "2.3.0.RC3",
"org.scalatra" %% "scalatra-json" % "2.3.0.RC3",
"org.scalatra" %% "scalatra-swagger" % "2.3.0.RC3",
"org.scalatra" %% "scalatra-swagger-ext" % "2.3.0.RC3",
"org.scalatra" %% "scalatra-slf4j" % "2.3.0.RC3",
"org.json4s" %% "json4s-jackson" % "3.2.10",
"org.json4s" %% "json4s-ext" % "3.2.10",
"commons-codec" % "commons-codec" % "1.7",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2",
2015-02-06 19:36:58 +00:00
//"net.databinder.dispatch" %% "json4s-jackson" % "0.11.2",
2015-06-07 15:56:08 +00:00
"net.databinder.dispatch" %% "dispatch-json4s-jackson" % "0.11.2",
"com.typesafe.akka" %% "akka-actor" % "2.3.6",
"org.eclipse.jetty" % "jetty-server" % "9.2.3.v20140905" % "container;compile;test",
"org.eclipse.jetty" % "jetty-webapp" % "9.2.3.v20140905" % "container;compile;test",
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;compile;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar"))
2013-03-21 04:35:41 +00:00
)
2015-06-07 15:56:08 +00:00
resolvers += "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository"
2012-08-29 16:27:55 +00:00
resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
2013-03-21 04:35:41 +00:00
resolvers += "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/"
ivyXML := <dependencies>
2015-06-07 15:56:08 +00:00
<exclude module="slf4j-log4j12"/>
<exclude module="grizzled-slf4j_2.9.1"/>
<exclude module="jsr311-api"/>
</dependencies>
2013-03-21 04:35:41 +00:00
2015-02-06 19:36:58 +00:00
mergeStrategy in assembly <<= (mergeStrategy in assembly) {
(old) => {
2015-06-07 15:56:08 +00:00
case "about.html" => MergeStrategy.discard
2013-03-21 04:35:41 +00:00
case x => old(x)
}
}
2015-02-06 19:36:58 +00:00
net.virtualvoid.sbt.graph.Plugin.graphSettings