Skip to content

Commit 36518b6

Browse files
author
Jerjou Cheng
committed
Update javaspark so it works.
1 parent a166020 commit 36518b6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

flexible/sparkjava/pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<maven.compiler.source>1.8</maven.compiler.source>
2020

2121
<appengine.maven.plugin>1.0.0</appengine.maven.plugin>
22+
<app.stage.artifact>${project.build.directory}/spark-1.0-jar-with-dependencies.jar</app.stage.artifact>
2223
</properties>
2324

2425
<dependencies>
@@ -44,8 +45,8 @@
4445
</dependency>
4546
<dependency>
4647
<groupId>com.google.cloud</groupId>
47-
<artifactId>google-cloud</artifactId>
48-
<version>0.4.0</version>
48+
<artifactId>google-cloud-datastore</artifactId>
49+
<version>0.8.1-beta</version>
4950
</dependency>
5051
</dependencies>
5152
<build>
@@ -83,7 +84,7 @@
8384
<mainClass>com.google.appengine.sparkdemo.Main</mainClass>
8485
<arguments>
8586
<argument>-jar</argument>
86-
<argument>target/spark-1.0-jar-with-dependencies.jar</argument>
87+
<argument>${app.stage.stagingDirectory}/spark-1.0-jar-with-dependencies.jar</argument>
8788
</arguments>
8889
</configuration>
8990
</plugin>

flexible/sparkjava/src/test/java/com/google/appengine/sparkdemo/UserServiceTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
import com.google.cloud.datastore.testing.LocalDatastoreHelper;
3232
import com.google.common.collect.Iterators;
3333

34+
import org.joda.time.Duration;
3435
import org.junit.AfterClass;
3536
import org.junit.Before;
3637
import org.junit.BeforeClass;
3738
import org.junit.Test;
3839

3940
import java.io.IOException;
4041
import java.util.List;
42+
import java.util.concurrent.TimeoutException;
4143

4244
public class UserServiceTest {
4345

@@ -72,8 +74,8 @@ public void setUp() {
7274
}
7375

7476
@AfterClass
75-
public static void afterClass() throws IOException, InterruptedException {
76-
HELPER.stop();
77+
public static void afterClass() throws IOException, InterruptedException, TimeoutException {
78+
HELPER.stop(Duration.standardMinutes(1));
7779
}
7880

7981
@Test

pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@
9898
<module>flexible/mailjet</module>
9999
<module>flexible/memcache</module>
100100
<module>flexible/sendgrid</module>
101-
<!--
102101
<module>flexible/sparkjava</module>
103-
-->
104102
<module>flexible/static-files</module>
105103
<module>flexible/twilio</module>
106104
<module>language/analysis</module>

0 commit comments

Comments
 (0)