Skip to content

Commit 7fe51d5

Browse files
committed
Fix SBT integration
1 parent 56caa50 commit 7fe51d5

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</dependency>
5252
<dependency>
5353
<groupId>org.apache.spark</groupId>
54-
<artifactId>network-shuffle</artifactId>
54+
<artifactId>spark-network-shuffle_2.10</artifactId>
5555
<version>${project.version}</version>
5656
</dependency>
5757
<dependency>

network/shuffle/pom.xml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
</parent>
2828

2929
<groupId>org.apache.spark</groupId>
30-
<artifactId>network-shuffle</artifactId>
30+
<artifactId>spark-network-shuffle_2.10</artifactId>
3131
<packaging>jar</packaging>
32-
<name>Shuffle Streaming Service</name>
32+
<name>Spark Project Shuffle Streaming Service Code</name>
3333
<url>http://spark.apache.org/</url>
3434
<properties>
3535
<sbt.project.name>network-shuffle</sbt.project.name>
@@ -39,7 +39,7 @@
3939
<!-- Core dependencies -->
4040
<dependency>
4141
<groupId>org.apache.spark</groupId>
42-
<artifactId>network</artifactId>
42+
<artifactId>spark-network-common_2.10</artifactId>
4343
<version>1.2.0-SNAPSHOT</version>
4444
</dependency>
4545
<dependency>
@@ -57,7 +57,7 @@
5757
<!-- Test dependencies -->
5858
<dependency>
5959
<groupId>org.apache.spark</groupId>
60-
<artifactId>network</artifactId>
60+
<artifactId>spark-network-common_2.10</artifactId>
6161
<version>1.2.0-SNAPSHOT</version>
6262
<type>test-jar</type>
6363
<scope>test</scope>
@@ -67,6 +67,11 @@
6767
<artifactId>junit</artifactId>
6868
<scope>test</scope>
6969
</dependency>
70+
<dependency>
71+
<groupId>com.novocode</groupId>
72+
<artifactId>junit-interface</artifactId>
73+
<scope>test</scope>
74+
</dependency>
7075
<dependency>
7176
<groupId>log4j</groupId>
7277
<artifactId>log4j</artifactId>
@@ -77,25 +82,20 @@
7782
<artifactId>mockito-all</artifactId>
7883
<scope>test</scope>
7984
</dependency>
85+
<dependency>
86+
<groupId>org.scalatest</groupId>
87+
<artifactId>scalatest_${scala.binary.version}</artifactId>
88+
<scope>test</scope>
89+
</dependency>
8090
</dependencies>
8191

82-
8392
<build>
84-
<outputDirectory>target/java/classes</outputDirectory>
85-
<testOutputDirectory>target/java/test-classes</testOutputDirectory>
93+
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
94+
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
8695
<plugins>
8796
<plugin>
88-
<groupId>org.apache.maven.plugins</groupId>
89-
<artifactId>maven-surefire-plugin</artifactId>
90-
<version>2.17</version>
91-
<configuration>
92-
<skipTests>false</skipTests>
93-
<includes>
94-
<include>**/Test*.java</include>
95-
<include>**/*Test.java</include>
96-
<include>**/*Suite.java</include>
97-
</includes>
98-
</configuration>
97+
<groupId>org.scalatest</groupId>
98+
<artifactId>scalatest-maven-plugin</artifactId>
9999
</plugin>
100100
</plugins>
101101
</build>

project/SparkBuild.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ object BuildCommons {
3131
private val buildLocation = file(".").getAbsoluteFile.getParentFile
3232

3333
val allProjects@Seq(bagel, catalyst, core, graphx, hive, hiveThriftServer, mllib, repl,
34-
sql, networkCommon, streaming, streamingFlumeSink, streamingFlume, streamingKafka, streamingMqtt,
35-
streamingTwitter, streamingZeromq) =
34+
sql, networkCommon, networkShuffle, streaming, streamingFlumeSink, streamingFlume, streamingKafka,
35+
streamingMqtt, streamingTwitter, streamingZeromq) =
3636
Seq("bagel", "catalyst", "core", "graphx", "hive", "hive-thriftserver", "mllib", "repl",
37-
"sql", "network-common", "streaming", "streaming-flume-sink", "streaming-flume", "streaming-kafka",
38-
"streaming-mqtt", "streaming-twitter", "streaming-zeromq").map(ProjectRef(buildLocation, _))
37+
"sql", "network-common", "network-shuffle", "streaming", "streaming-flume-sink",
38+
"streaming-flume", "streaming-kafka", "streaming-mqtt", "streaming-twitter",
39+
"streaming-zeromq").map(ProjectRef(buildLocation, _))
3940

4041
val optionallyEnabledProjects@Seq(yarn, yarnStable, yarnAlpha, java8Tests, sparkGangliaLgpl, sparkKinesisAsl) =
4142
Seq("yarn", "yarn-stable", "yarn-alpha", "java8-tests", "ganglia-lgpl", "kinesis-asl")
@@ -142,7 +143,7 @@ object SparkBuild extends PomBuild {
142143

143144
// TODO: Add Sql to mima checks
144145
allProjects.filterNot(x => Seq(spark, sql, hive, hiveThriftServer, catalyst, repl,
145-
streamingFlumeSink, networkCommon).contains(x)).foreach {
146+
streamingFlumeSink, networkCommon, networkShuffle).contains(x)).foreach {
146147
x => enable(MimaBuild.mimaSettings(sparkHome, x))(x)
147148
}
148149

0 commit comments

Comments
 (0)