Created
April 28, 2015 20:18
-
-
Save OliverJAsh/9c04a33071a21901667d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import org.scalatra.sbt._ | |
import org.scalatra.sbt.PluginKeys._ | |
import com.mojolly.scalate.ScalatePlugin._ | |
import ScalateKeys._ | |
object CiapiBuild extends Build { | |
val Organization = "com.example" | |
val Name = "ci-api" | |
val Version = "0.1.0-SNAPSHOT" | |
val ScalaVersion = "2.11.6" | |
val ScalatraVersion = "2.4.0.M2" | |
lazy val project = Project ( | |
"ci-api", | |
file("."), | |
settings = ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq( | |
organization := Organization, | |
name := Name, | |
version := Version, | |
scalaVersion := ScalaVersion, | |
resolvers += Classpaths.typesafeReleases, | |
resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases", | |
libraryDependencies ++= Seq( | |
"org.scalatra" %% "scalatra" % ScalatraVersion, | |
"org.scalatra" %% "scalatra-scalate" % ScalatraVersion, | |
"org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", | |
"ch.qos.logback" % "logback-classic" % "1.1.2" % "runtime", | |
"org.eclipse.jetty" % "jetty-webapp" % "9.1.5.v20140505" % "container", | |
"org.eclipse.jetty" % "jetty-plus" % "9.1.5.v20140505" % "container", | |
"javax.servlet" % "javax.servlet-api" % "3.1.0", | |
"org.scalatra" %% "scalatra-json" % ScalatraVersion, | |
"org.json4s" %% "json4s-jackson" % "3.3.0.RC1", | |
"com.squareup.okhttp" %% "okhttp" % "2.3.0" | |
), | |
scalateTemplateConfig in Compile <<= (sourceDirectory in Compile){ base => | |
Seq( | |
TemplateConfig( | |
base / "webapp" / "WEB-INF" / "templates", | |
Seq.empty, /* default imports should be added here */ | |
Seq( | |
Binding("context", "_root_.org.scalatra.scalate.ScalatraRenderContext", importMembers = true, isImplicit = true) | |
), /* add extra bindings here */ | |
Some("templates") | |
) | |
) | |
} | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment