Add target to generate packages for heron simulator (#3163)

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 @@
     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