You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by nw...@apache.org on 2019/01/24 04:00:48 UTC
[incubator-heron] branch master updated: Add target to generate
packages for heron simulator (#3163)
This is an automated email from the ASF dual-hosted git repository.
nwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new eb7ab2c Add target to generate packages for heron simulator (#3163)
eb7ab2c is described below
commit eb7ab2c3c0bf68256811c786a0391a7c08708c7e
Author: Ning Wang <nw...@twitter.com>
AuthorDate: Wed Jan 23 20:00:43 2019 -0800
Add target to generate packages for heron simulator (#3163)
---
heron/simulator/src/java/BUILD | 25 +++++++++++++++++++++++++
heron/simulator/src/java/shade.conf | 18 ++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/heron/simulator/src/java/BUILD b/heron/simulator/src/java/BUILD
index 1d3b66b..1239b4a 100644
--- a/heron/simulator/src/java/BUILD
+++ b/heron/simulator/src/java/BUILD
@@ -17,3 +17,28 @@ java_library(
srcs = glob(["**/*.java"]),
deps = simulator_deps_files,
)
+
+java_binary(
+ name = "simulator-unshaded",
+ srcs = glob(["org/apache/heron/simulator/**/*.java"]),
+ deps = simulator_deps_files + [
+ "//third_party/java:kryo-neverlink",
+ "@org_apache_commons_commons_lang3//jar"
+ ]
+)
+
+jarjar_binary(
+ name = "simulator-shaded",
+ src = ":simulator-unshaded_deploy.jar",
+ shade = "shade.conf",
+ deps = [
+ "@org_sonatype_plugins_jarjar_maven_plugin//jar"
+ ]
+)
+
+genrule(
+ name = "heron-simulator",
+ srcs = [":simulator-shaded"],
+ outs = ["heron-simulator.jar"],
+ cmd = "cp $< $@",
+)
\ No newline at end of file
diff --git a/heron/simulator/src/java/shade.conf b/heron/simulator/src/java/shade.conf
new file mode 100644
index 0000000..4cca52c
--- /dev/null
+++ b/heron/simulator/src/java/shade.conf
@@ -0,0 +1,18 @@
+# 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.
+
+rule com.google.protobuf** org.apache.heron.shaded.@0