[ 
https://issues.apache.org/jira/browse/BEAM-5114?focusedWorklogId=155048&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-155048
 ]

ASF GitHub Bot logged work on BEAM-5114:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Oct/18 18:18
            Start Date: 16/Oct/18 18:18
    Worklog Time Spent: 10m 
      Work Description: stale[bot] closed pull request #6191: [BEAM-5114] 
Create example uber jars
URL: https://github.com/apache/beam/pull/6191
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/examples/java/direct/build.gradle 
b/examples/java/direct/build.gradle
new file mode 100644
index 00000000000..751b2f35457
--- /dev/null
+++ b/examples/java/direct/build.gradle
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import groovy.json.JsonOutput
+
+apply plugin: org.apache.beam.gradle.BeamModulePlugin
+// Disable default shadow jar closure and include all class files and 
resources.
+applyJavaNature(shadowClosure: {})
+
+dependencies {
+    compile project(path: ":beam-examples-java", configuration: "shadow")
+    compile project(path: ":beam-examples-java", configuration: 
"directRunnerPreCommit")
+}
diff --git a/examples/java/flink/build.gradle b/examples/java/flink/build.gradle
new file mode 100644
index 00000000000..c0674f4d48a
--- /dev/null
+++ b/examples/java/flink/build.gradle
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import groovy.json.JsonOutput
+
+apply plugin: org.apache.beam.gradle.BeamModulePlugin
+// Disable default shadow jar closure and include all class files and 
resources.
+applyJavaNature(shadowClosure: {})
+
+dependencies {
+    compile project(path: ":beam-examples-java", configuration: "shadow")
+    compile project(path: ":beam-examples-java", configuration: 
"flinkRunnerPreCommit")
+}
diff --git a/examples/java/portable/build.gradle 
b/examples/java/portable/build.gradle
new file mode 100644
index 00000000000..8e342feab22
--- /dev/null
+++ b/examples/java/portable/build.gradle
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import groovy.json.JsonOutput
+
+apply plugin: org.apache.beam.gradle.BeamModulePlugin
+// Disable default shadow jar closure and include all class files and 
resources.
+applyJavaNature(shadowClosure: {})
+
+dependencies {
+    compile project(path: ":beam-examples-java", configuration: "shadow")
+    compile project(path: ":beam-runners-reference-java", configuration: 
"shadow")
+}
diff --git a/examples/java/spark/build.gradle b/examples/java/spark/build.gradle
new file mode 100644
index 00000000000..a5b64c96853
--- /dev/null
+++ b/examples/java/spark/build.gradle
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import groovy.json.JsonOutput
+
+apply plugin: org.apache.beam.gradle.BeamModulePlugin
+// Disable default shadow jar closure and include all class files and 
resources.
+applyJavaNature(shadowClosure: {})
+
+dependencies {
+    compile project(path: ":beam-examples-java", configuration: "shadow")
+    compile project(path: ":beam-examples-java", configuration: 
"sparkRunnerPreCommit")
+}
diff --git a/runners/reference/java/build.gradle 
b/runners/reference/java/build.gradle
index 7bbaed09126..932a788b25f 100644
--- a/runners/reference/java/build.gradle
+++ b/runners/reference/java/build.gradle
@@ -29,6 +29,7 @@ configurations {
 }
 
 dependencies {
+  compile library.java.guava
   compile library.java.hamcrest_library
   shadow project(path: ":beam-model-pipeline", configuration: "shadow")
   shadow project(path: ":beam-runners-core-construction-java", configuration: 
"shadow")
diff --git a/settings.gradle b/settings.gradle
index 01ea889a542..2dc1f82c63e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -22,6 +22,14 @@ include ":release"
 
 include "beam-examples-java"
 project(":beam-examples-java").dir = file("examples/java")
+include "beam-examples-java-direct"
+project(":beam-examples-java-direct").dir = file("examples/java/direct")
+include "beam-examples-java-flink"
+project(":beam-examples-java-flink").dir = file("examples/java/flink")
+include "beam-examples-java-portable"
+project(":beam-examples-java-portable").dir = file("examples/java/portable")
+include "beam-examples-java-spark"
+project(":beam-examples-java-spark").dir = file("examples/java/spark")
 include "beam-model-fn-execution"
 project(":beam-model-fn-execution").dir = file("model/fn-execution")
 include "beam-model-job-management"


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 155048)
    Time Spent: 2h 10m  (was: 2h)

> Create example uber jars for supported runners
> ----------------------------------------------
>
>                 Key: BEAM-5114
>                 URL: https://issues.apache.org/jira/browse/BEAM-5114
>             Project: Beam
>          Issue Type: New Feature
>          Components: examples-java
>            Reporter: Ben Sidhom
>            Assignee: Ben Sidhom
>            Priority: Major
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Producing these artifacts results in several benefits
>  * Gives an example of how to package user code for different runners
>  * Enables ad-hoc testing of runner changes against real user pipelines easier
>  * Enables integration testing end-to-end pipelines against different runner 
> services



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to