Created
April 12, 2012 21:37
-
-
Save joegaudet/2371168 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
// Aristotle project | |
import AssemblyKeys._ | |
name := "Aristotle" | |
version := "3.0" | |
scalaVersion := "2.9.1" | |
mainClass := Some("com.matygo.Aristotle") | |
mainClass in run := Some("com.matygo.Aristotle") | |
jarName in assembly := "aristotle.jar" | |
seq(webSettings :_*) | |
port in container.Configuration := 8080 | |
seq(assemblySettings: _*) | |
parallelExecution in Test := false | |
excludedFiles in assembly := { (bases: Seq[File]) => | |
bases flatMap { base => | |
(base / "META-INF" * "*").get collect { | |
case f if f.getName == "something" => f | |
case f if f.getName.toLowerCase == "license" => f | |
case f if f.getName.toLowerCase == "manifest.mf" => f | |
case f if f.getName.toLowerCase.contains(".sf") => f | |
case f if f.getName.toLowerCase.contains(".dsa") => f | |
case f if f.getName.toLowerCase.contains(".rsa") => f | |
} | |
}} | |
test in assembly := {} | |
// resolvers | |
resolvers += "Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" | |
resolvers += "Sonatype OSS releases" at "http://oss.sonatype.org/content/repositories/releases" | |
resolvers += "twitter.com" at "http://maven.twttr.com" | |
resolvers += "Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/" | |
resolvers += "Scala Tools Releases" at "http://scala-tools.org/repo-releases/" | |
resolvers += "FuseSource Snapshots" at "http://repo.fusesource.com/nexus/content/groups/public-snapshots" | |
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" | |
resolvers += "Maven Repo" at "http://repo2.maven.org/maven2/" | |
// jettty | |
libraryDependencies += "org.eclipse.jetty" % "jetty-webapp" % "7.6.0.v20120127" % "container, compile" | |
libraryDependencies += "org.eclipse.jetty" % "jetty-servlets" % "7.6.0.v20120127" % "container, compile" | |
libraryDependencies += "org.eclipse.jetty" % "jetty-server" % "7.6.0.v20120127" % "container, compile" | |
libraryDependencies += "org.eclipse.jetty" % "jetty-plus" % "7.6.0.v20120127" % "container, compile" | |
libraryDependencies += "org.eclipse.jetty" % "jetty-client" % "7.6.0.v20120127" % "container, compile" | |
libraryDependencies += "org.eclipse.jetty" % "test-jetty-servlet" % "7.6.0.v20120127" % "container, compile" | |
// scalatra | |
libraryDependencies += "org.scalatra" %% "scalatra" % "2.0.2" | |
libraryDependencies += "org.scalatra" %% "scalatra-fileupload" % "2.0.2" | |
libraryDependencies += "org.scalatra" %% "scalatra-test" % "2.0.2" | |
libraryDependencies += "org.scalatra" %% "scalatra-scalatest" % "2.0.2" | |
// scalate | |
libraryDependencies += "org.fusesource.scalate" % "scalate-core" % "1.5.3" | |
libraryDependencies += "org.fusesource.scalate" % "scalate-util" % "1.5.3" | |
// toolkit for extracting text from pdf, doc, html, ..... | |
libraryDependencies += "org.apache.tika" % "tika-core" % "0.9" | |
libraryDependencies += "org.apache.tika" % "tika-parsers" % "0.9" | |
// database | |
libraryDependencies += "c3p0" % "c3p0" % "0.9.1.1" | |
libraryDependencies += "org.squeryl" %% "squeryl" % "0.9.4" | |
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.15" | |
// json | |
libraryDependencies += "net.liftweb" %% "lift-json" % "2.4-M4" | |
// markdown | |
libraryDependencies += "org.markdownj" % "markdownj" % "0.3.0-1.0.2b4" | |
// scribe | |
libraryDependencies += "org.scribe" % "scribe" % "1.0.6" | |
// test | |
libraryDependencies += "junit" % "junit" % "4.8.1" % "test" | |
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test" | |
libraryDependencies += "org.mockito" % "mockito-all" % "1.9.0" % "test" | |
libraryDependencies += "com.twitter" % "util-core" % "1.10.2" | |
libraryDependencies += "com.twitter" % "util-logging" % "1.10.2" | |
// apache commons | |
libraryDependencies += "commons-codec" % "commons-codec" % "1.5" | |
libraryDependencies += "commons-validator" % "commons-validator" % "1.3.0" | |
libraryDependencies += "org.apache.commons" % "commons-email" % "1.2" | |
// reflections | |
libraryDependencies += "org.reflections" % "reflections" % "0.9.5" | |
// aaka | |
libraryDependencies += "se.scalablesolutions.akka" % "akka-actor" % "1.2" | |
// bcrypt | |
libraryDependencies += "org.mindrot" % "jbcrypt" % "0.3m" | |
// slf4j | |
libraryDependencies += "org.slf4j" % "slf4j-simple" % "1.6.4" | |
// scopt for command line arguments | |
libraryDependencies += "com.github.scopt" %% "scopt" % "1.1.3" | |
// metrics | |
libraryDependencies += "com.yammer.metrics" % "metrics-core" % "2.0.0-RC0" | |
libraryDependencies += "com.yammer.metrics" % "metrics-ganglia" % "2.0.0-RC0" | |
fullRunTask(TaskKey("aristotle"), Compile, "com.matygo.Aristotle") | |
fullRunTask(TaskKey("schema"), Compile, "com.matygo.models.PrintSchema") | |
fullRunTask(TaskKey("load-schema"), Compile, "com.matygo.models.LoadSchema") | |
fullRunTask(TaskKey("drop-schema"), Compile, "com.matygo.models.DropSchema") | |
fullRunTask(TaskKey("load-test-schema"), Test, "com.matygo.models.LoadTestSchema") | |
fullRunTask(TaskKey("drop-test-schema"), Test, "com.matygo.models.DropTestSchema") | |
fullRunTask(TaskKey("run-notification"), Compile, "com.matygo.services.NotificationService") | |
fullRunTask(TaskKey("seed"), Compile, "com.matygo.models.Seed") | |
fullRunTask(TaskKey("load-front-end-test-schema"), Compile, "com.matygo.models.LoadFrontEndTestSchema") | |
fullRunTask(TaskKey("drop-front-end-test-schema"), Compile, "com.matygo.models.DropFrontEndTestSchema") | |
fullRunTask(TaskKey("front-end-seed"), Compile, "com.matygo.models.FrontEndSeed") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment