Skip to content

Commit

Permalink
Exclude groovy from sbt build, and also provide a way for such instan…
Browse files Browse the repository at this point in the history
…ces in future.
  • Loading branch information
ScrapCodes committed Nov 10, 2014
1 parent 8bd4e40 commit 2fffed3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ object SparkBuild extends PomBuild {

// Note ordering of these settings matter.
/* Enable shared settings on all projects */
(allProjects ++ optionallyEnabledProjects ++ assemblyProjects).foreach(enable(sharedSettings))
(allProjects ++ optionallyEnabledProjects ++ assemblyProjects ++ Seq(spark, tools))
.foreach(enable(sharedSettings ++ ExludedDependencies.settings))

/* Enable tests settings for all projects except examples, assembly and tools */
(allProjects ++ optionallyEnabledProjects).foreach(enable(TestSettings.settings))
Expand Down Expand Up @@ -186,6 +187,16 @@ object Flume {
lazy val settings = sbtavro.SbtAvro.avroSettings
}

/**
This excludes library dependencies in sbt, which are specified in maven but are
not needed by sbt build.
*/
object ExludedDependencies {
lazy val settings = Seq(
libraryDependencies ~= { libs => libs.filterNot(_.name == "groovy-all") }
)
}

/**
* Following project only exists to pull previous artifacts of Spark for generating
* Mima ignores. For more information see: SPARK 2071
Expand Down

0 comments on commit 2fffed3

Please sign in to comment.