Skip to content

Instantly share code, notes, and snippets.

@meniku
Created November 21, 2012 12:58
Show Gist options
  • Save meniku/4124733 to your computer and use it in GitHub Desktop.
Save meniku/4124733 to your computer and use it in GitHub Desktop.
project/plugins.sbt
========================================================
libraryDependencies <+= sbtVersion(v => v match {
case "0.11.0" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.0-0.2.8"
case "0.11.1" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.1-0.2.10"
case "0.11.2" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.2-0.2.11"
case "0.11.3" => "com.github.siasia" %% "xsbt-web-plugin" % "0.11.3-0.2.11.1"
case x if (x.startsWith("0.12")) => "com.github.siasia" %% "xsbt-web-plugin" % "0.12.0-0.2.11.1"
})
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.4")
build.sbt
========================================================
organization := "com.memonews"
name := "Detectr"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.9.2"
seq(webSettings :_*)
classpathTypes ~= (_ + "orbit")
libraryDependencies ++= Seq(
"org.scalatra" % "scalatra" % "2.1.1",
"org.scalatra" % "scalatra-scalate" % "2.1.1",
"org.scalatra" % "scalatra-specs2" % "2.1.1" % "test",
"ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime",
"org.eclipse.jetty" % "jetty-webapp" % "8.1.7.v20120910" % "container",
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar")),
"com.cybozu.labs" % "langdetect" % "1.1-20120112",
"commons-io" % "commons-io" % "2.0",
"org.scalatra" % "scalatra-lift-json" % "2.1.1",
"org.mortbay.jetty" % "jetty" % "6.1.22"
)
assemblySettings
mainClass in AssemblyKeys.assembly := Some("JettyLauncher")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment