Skip to content

Instantly share code, notes, and snippets.

@akr4
Created November 2, 2012 07:09
Show Gist options
  • Save akr4/3999182 to your computer and use it in GitHub Desktop.
Save akr4/3999182 to your computer and use it in GitHub Desktop.
xsbt: add Hadoop jars to unmanaged classpath
lazy val hadoopHomePath =
Properties.envOrNone("HADOOP_HOME").map { file }.getOrElse(error("please set HADOOP_HOME"))
lazy val main = Project(groupName, file("."),
settings = defaultSettings ++ Seq(
unmanagedClasspath in Compile <<= (unmanagedClasspath in Compile, baseDirectory) map {
(cp, bd) => cp ++ Attributed.blankSeq(hadoopHomePath ** "*.jar" get)
}
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment