Skip to content

Commit 25bd7db

Browse files
committed
Add necessary dependencies scala-reflect and scala-compiler to tools. Update repl dependencies, which are similar, to be consistent between Maven / SBT in this regard too.
1 parent b859853 commit 25bd7db

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,11 @@
419419
<artifactId>scala-compiler</artifactId>
420420
<version>${scala.version}</version>
421421
</dependency>
422+
<dependency>
423+
<groupId>org.scala-lang</groupId>
424+
<artifactId>scala-reflect</artifactId>
425+
<version>${scala.version}</version>
426+
</dependency>
422427
<dependency>
423428
<groupId>org.scala-lang</groupId>
424429
<artifactId>jline</artifactId>

project/SparkBuild.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ object SparkBuild extends Build {
356356
) ++ assemblySettings ++ extraAssemblySettings
357357

358358
def toolsSettings = sharedSettings ++ Seq(
359-
name := "spark-tools"
359+
name := "spark-tools",
360+
libraryDependencies <+= scalaVersion(v => "org.scala-lang" % "scala-compiler" % v ),
361+
libraryDependencies <+= scalaVersion(v => "org.scala-lang" % "scala-reflect" % v )
360362
) ++ assemblySettings ++ extraAssemblySettings
361363

362364
def graphxSettings = sharedSettings ++ Seq(

repl/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
<artifactId>scala-compiler</artifactId>
7878
<version>${scala.version}</version>
7979
</dependency>
80+
<dependency>
81+
<groupId>org.scala-lang</groupId>
82+
<artifactId>scala-reflect</artifactId>
83+
<version>${scala.version}</version>
84+
</dependency>
8085
<dependency>
8186
<groupId>org.scala-lang</groupId>
8287
<artifactId>jline</artifactId>

tools/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@
5555
<artifactId>spark-streaming_${scala.binary.version}</artifactId>
5656
<version>${project.version}</version>
5757
</dependency>
58+
<dependency>
59+
<groupId>org.scala-lang</groupId>
60+
<artifactId>scala-reflect</artifactId>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.scala-lang</groupId>
64+
<artifactId>scala-compiler</artifactId>
65+
</dependency>
5866
<dependency>
5967
<groupId>org.scalatest</groupId>
6068
<artifactId>scalatest_${scala.binary.version}</artifactId>

0 commit comments

Comments
 (0)