Skip to content

Commit 6af91ac

Browse files
committed
Ported oldDeps back. + fixes issues with prev commit.
1 parent 65cf06c commit 6af91ac

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,6 @@
649649
<artifactId>hadoop-yarn-common</artifactId>
650650
<version>${yarn.version}</version>
651651
<exclusions>
652-
<exclusion>
653-
<groupId>javax.servlet</groupId>
654-
<artifactId>servlet-api</artifactId>
655-
</exclusion>
656652
<exclusion>
657653
<groupId>asm</groupId>
658654
<artifactId>asm</artifactId>
@@ -680,10 +676,6 @@
680676
<artifactId>hadoop-yarn-server-web-proxy</artifactId>
681677
<version>${yarn.version}</version>
682678
<exclusions>
683-
<exclusion>
684-
<groupId>javax.servlet</groupId>
685-
<artifactId>servlet-api</artifactId>
686-
</exclusion>
687679
<exclusion>
688680
<groupId>asm</groupId>
689681
<artifactId>asm</artifactId>
@@ -711,10 +703,6 @@
711703
<artifactId>hadoop-yarn-client</artifactId>
712704
<version>${yarn.version}</version>
713705
<exclusions>
714-
<exclusion>
715-
<groupId>javax.servlet</groupId>
716-
<artifactId>servlet-api</artifactId>
717-
</exclusion>
718706
<exclusion>
719707
<groupId>asm</groupId>
720708
<artifactId>asm</artifactId>

project/SparkBuild.scala

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,31 @@ object SparkBuild extends PomBuild {
7474
lazy val sharedSettings = graphSettings ++ ScalaStyleSettings ++ Seq (
7575
javaHome := Properties.envOrNone("JAVA_HOME").map(file),
7676
incOptions := incOptions.value.withNameHashing(true),
77+
retrieveManaged := true,
78+
retrievePattern := "[type]s/[artifact](-[revision])(-[classifier]).[ext]",
7779
publishMavenStyle := true
7880
)
7981

82+
/** Following project only exists to pull previous artifacts of Spark for generating
83+
Mima ignores. For more information see: SPARK 2071 */
84+
lazy val oldDeps = Project("oldDeps", file("dev"), settings = oldDepsSettings)
85+
86+
def versionArtifact(id: String): Option[sbt.ModuleID] = {
87+
val fullId = id + "_2.10"
88+
Some("org.apache.spark" % fullId % "1.0.0")
89+
}
90+
91+
def oldDepsSettings() = Defaults.defaultSettings ++ Seq(
92+
name := "old-deps",
93+
scalaVersion := "2.10.4",
94+
retrieveManaged := true,
95+
retrievePattern := "[type]s/[artifact](-[revision])(-[classifier]).[ext]",
96+
libraryDependencies := Seq("spark-streaming-mqtt", "spark-streaming-zeromq",
97+
"spark-streaming-flume", "spark-streaming-kafka", "spark-streaming-twitter",
98+
"spark-streaming", "spark-mllib", "spark-bagel", "spark-graphx",
99+
"spark-core").map(versionArtifact(_).get intransitive())
100+
)
101+
80102
def enable(settings: Seq[Setting[_]])(projectRef: ProjectRef) = {
81103
val existingSettings = projectsMap.getOrElse(projectRef.project, Seq[Setting[_]]())
82104
projectsMap += (projectRef.project -> (existingSettings ++ settings))
@@ -107,7 +129,7 @@ object SparkBuild extends PomBuild {
107129
super.projectDefinitions(baseDirectory).map { x =>
108130
if (projectsMap.exists(_._1 == x.id)) x.settings(projectsMap(x.id): _*)
109131
else x.settings(Seq[Setting[_]](): _*)
110-
}
132+
} ++ Seq[Project](oldDeps)
111133
}
112134

113135
}

0 commit comments

Comments
 (0)