Created
October 9, 2013 19:49
-
-
Save stevef/6907206 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 AtmosphereBuild extends Build { | |
val Organization = "com.example" | |
val Name = "Scalatra Atmosphere Example" | |
val Version = "0.1.0-SNAPSHOT" | |
val ScalaVersion = "2.10.1" | |
val ScalatraVersion = "2.2.1" | |
lazy val project = Project ( | |
"atmosphere-example", | |
file("."), | |
settings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq( | |
organization := Organization, | |
name := Name, | |
version := Version, | |
scalaVersion := ScalaVersion, | |
resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/", | |
resolvers += "Akka Repo" at "http://repo.akka.io/repository", | |
libraryDependencies ++= Seq( | |
"org.json4s" %% "json4s-jackson" % "3.1.0", | |
"org.scalatra" %% "scalatra" % ScalatraVersion, | |
"org.scalatra" %% "scalatra-scalate" % ScalatraVersion, | |
"org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", | |
"org.scalatra" %% "scalatra-atmosphere" % ScalatraVersion, | |
"ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime", | |
"org.eclipse.jetty" % "jetty-webapp" % "8.1.8.v20121106" % "container", | |
"org.eclipse.jetty" % "jetty-websocket" % "8.1.8.v20121106" % "container;provided", | |
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar")) | |
), | |
scalateTemplateConfig in Compile <<= (sourceDirectory in Compile){ base => | |
Seq( | |
TemplateConfig( | |
base / "webapp" / "WEB-INF" / "templates", | |
Seq.empty, /* default imports should be added here */ | |
Seq.empty, /* add extra bindings here */ | |
Some("templates") | |
) | |
) | |
} | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment