From 9b7215d74a2333f02bf40975b062835841db868c Mon Sep 17 00:00:00 2001
From: Matei Zaharia <matei@eecs.berkeley.edu>
Date: Mon, 29 Aug 2011 22:58:53 -0700
Subject: [PATCH] Only include JAR files in lib in the unmanaged classpath.

---
 project/SparkBuild.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 4f68ca5fd9..d3a743360a 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -19,7 +19,7 @@ object SparkBuild extends Build {
     version := "0.4-SNAPSHOT",
     scalaVersion := "2.9.0-1",
     scalacOptions := Seq(/*"-deprecation",*/ "-unchecked", "-optimize"), // -deprecation is too noisy due to usage of old Hadoop API, enable it once that's no longer an issue
-    unmanagedJars in Compile <<= baseDirectory map { base => (base ** "*.jar").classpath },
+    unmanagedJars in Compile <<= baseDirectory map { base => (base / "lib" ** "*.jar").classpath },
     retrieveManaged := true,
     transitiveClassifiers in Scope.GlobalScope := Seq("sources"),
     testListeners <<= target.map(t => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath))),
-- 
GitLab