Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created November 18, 2011 16:49
Show Gist options
  • Save efleming969/1377010 to your computer and use it in GitHub Desktop.
Save efleming969/1377010 to your computer and use it in GitHub Desktop.
import sbt._
import Keys._
import com.github.siasia.WebPlugin
import com.github.siasia.PluginKeys._
import fi.jawsy.sbtplugins.jrebel.JRebelPlugin._
object AppEngineSample extends Build {
lazy val testingDependencies = Seq(
"org.scalatest" %% "scalatest" % "1.6.1" % "test"
)
lazy val productionDependencies = Seq(
"org.eclipse.jetty" % "jetty-webapp" % "8.0.1.v20110908" % "container",
"javax.servlet" % "servlet-api" % "2.5" % "provided"
)
lazy val standardSettings = Seq(
organization := "sudogs",
name := "sample",
version := "0.1-SNAPSHOT",
scanDirectories in Compile := Nil,
libraryDependencies := testingDependencies ++ productionDependencies,
jrebel.webLinks <++= webappResources in Compile,
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked")
)
lazy val root = Project(
id = "sample",
base = file("."),
// order matters here when override plugin settings
settings = Defaults.defaultSettings ++ WebPlugin.webSettings ++ jrebelSettings ++ standardSettings
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment