[SPARK-7820] [BUILD] Fix Java8-tests suite compile and test error under sbt
Author: jerryshao <saisai.shao@intel.com> Closes #7120 from jerryshao/SPARK-7820 and squashes the following commits: 6902439 [jerryshao] fix Java8-tests suite compile error under sbt
This commit is contained in:
parent
75b9fe4c5f
commit
9f7db3486f
|
@ -39,6 +39,13 @@
|
|||
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.spark</groupId>
|
||||
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>test-jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.spark</groupId>
|
||||
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
|
||||
|
@ -49,6 +56,7 @@
|
|||
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>test-jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
|
|
@ -161,7 +161,7 @@ object SparkBuild extends PomBuild {
|
|||
// Note ordering of these settings matter.
|
||||
/* Enable shared settings on all projects */
|
||||
(allProjects ++ optionallyEnabledProjects ++ assemblyProjects ++ Seq(spark, tools))
|
||||
.foreach(enable(sharedSettings ++ ExludedDependencies.settings ++ Revolver.settings))
|
||||
.foreach(enable(sharedSettings ++ ExcludedDependencies.settings ++ Revolver.settings))
|
||||
|
||||
/* Enable tests settings for all projects except examples, assembly and tools */
|
||||
(allProjects ++ optionallyEnabledProjects).foreach(enable(TestSettings.settings))
|
||||
|
@ -246,7 +246,7 @@ object Flume {
|
|||
This excludes library dependencies in sbt, which are specified in maven but are
|
||||
not needed by sbt build.
|
||||
*/
|
||||
object ExludedDependencies {
|
||||
object ExcludedDependencies {
|
||||
lazy val settings = Seq(
|
||||
libraryDependencies ~= { libs => libs.filterNot(_.name == "groovy-all") }
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue