Skip to content

Commit 2fffed3

Browse files
committed
Exclude groovy from sbt build, and also provide a way for such instances in future.
1 parent 8bd4e40 commit 2fffed3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

project/SparkBuild.scala

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ object SparkBuild extends PomBuild {
144144

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

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

190+
/**
191+
This excludes library dependencies in sbt, which are specified in maven but are
192+
not needed by sbt build.
193+
*/
194+
object ExludedDependencies {
195+
lazy val settings = Seq(
196+
libraryDependencies ~= { libs => libs.filterNot(_.name == "groovy-all") }
197+
)
198+
}
199+
189200
/**
190201
* Following project only exists to pull previous artifacts of Spark for generating
191202
* Mima ignores. For more information see: SPARK 2071

0 commit comments

Comments
 (0)