File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments