Skip to content

Instantly share code, notes, and snippets.

@sandys
Created October 26, 2013 12:44
Show Gist options
  • Save sandys/7169065 to your computer and use it in GitHub Desktop.
Save sandys/7169065 to your computer and use it in GitHub Desktop.
build.scala
import sbt._
import Keys._
import sbtassembly.Plugin._
//import AssemblyKeys._ // put this at the top of the file
import sbtassembly.Plugin.AssemblyKeys
import sbtassembly.Plugin.AssemblyKeys._
import sbtassembly.Plugin.assemblySettings
import sbtassembly.Plugin.MergeStrategy
object BuildSettings {
val buildOrganization = "ru.efir"
val buildScalaVersion = "2.9.2"
val buildVersion = "0.2.0"
val name = "crunch"
val buildSettings = Defaults.defaultSettings ++ Seq(
organization := buildOrganization,
scalaVersion := buildScalaVersion,
version := buildVersion
)
}
object Dependencies {
val slf4j = "org.slf4j" %% "slf4j-api" % "1.+"
//val testDeps = Seq(junit, specs)
val res = Seq(
"Typesafe Releases Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/",
"Sonatype Repository" at "http://oss.sonatype.org/content/repositories/releases/",
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
"jboss repo" at "http://repository.jboss.org/nexus/content/groups/public-jboss/"
)
val libs = Seq(
"org.apache.hadoop" % "hadoop-core" % "1.0.4",
// "org.jboss.netty" % "netty" % "3.2.7.Final",
"org.slf4j" % "slf4j-api" % "1.6.4",
"org.slf4j" % "slf4j-simple" % "1.6.4",
// "org.apache.mahout" % "mahout-core" % "0.7",
"net.liftweb" % "lift-json_2.9.2" % "2.6-SNAPSHOT",
"net.sf.opencsv" % "opencsv" % "2.3"
// "org.mongodb" %% "casbah" % "2.6.3"
// "com.googlecode.json-simple" % "json-simple" % "1.1.1"
)
lazy val m = RootProject(uri("https://github.com/mongodb/casbah.git#master"))
}
object Crunch extends Build {
import Dependencies._
import BuildSettings._
lazy val root = Project(name, file("."),settings = buildSettings ++ Seq( libraryDependencies := libs ) ++ Seq(resolvers := res) ).
dependsOn(m)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment