Created
November 2, 2012 07:09
-
-
Save akr4/3999182 to your computer and use it in GitHub Desktop.
xsbt: add Hadoop jars to unmanaged classpath
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
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