Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Updates to fix issues with the Heron API dependencies (#3844)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknezis authored Jul 9, 2022
1 parent b4d640f commit 12b8abc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ maven_install(
"tech.tablesaw:tablesaw-core:0.11.4",
"org.glassfish.hk2.external:aopalliance-repackaged:2.5.0-b32",
"org.apache.commons:commons-compress:1.14",
"org.apache.commons:commons-lang3:3.12.0",
"commons-io:commons-io:2.4",
"commons-collections:commons-collections:3.2.1",
"commons-cli:commons-cli:1.3.1",
Expand Down
8 changes: 4 additions & 4 deletions heron/api/src/java/shade.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

rule com.google.protobuf** org.apache.heron.shaded.@0
rule org.slf4j** org.apache.heron.shaded.@0
rule javax.xml.bind** org.apache.heron.shaded.@0
rule org.apache.commons** org.apache.heron.shaded.@0
zap com.google.protobuf**
zap org.slf4j**
zap javax.xml.bind**
zap org.apache.commons.lang3**
2 changes: 1 addition & 1 deletion maven_install.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependency_tree": {
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL",
"__INPUT_ARTIFACTS_HASH": 389120310,
"__INPUT_ARTIFACTS_HASH": 1411695818,
"__RESOLVED_ARTIFACTS_HASH": 1590208671,
"conflict_resolution": {},
"dependencies": [
Expand Down
16 changes: 13 additions & 3 deletions release/maven/maven-pom-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,19 @@ cat ./maven/heron-no-kryo.template.pom | \
<version>3.12.0</version>\
</dependency>\
<dependency>\
<groupId>org.glassfish.jersey.media</groupId>\
<artifactId>jersey-media-jaxb</artifactId>\
<version>2.25.1</version>\
<groupId>com.google.protobuf</groupId>\
<artifactId>protobuf-java</artifactId>\
<version>3.16.1</version>\
</dependency>\
<dependency>\
<groupId>javax.xml.bind</groupId>\
<artifactId>jaxb-api</artifactId>\
<version>2.3.0</version>\
</dependency>\
<dependency>\
<groupId>org.slf4j</groupId>\
<artifactId>jul-to-slf4j</artifactId>\
<version>1.7.36</version>\
</dependency>", $0); print}' | \
xmllint --format - \
>> ./heron-api-$1.pom
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_maven_artifacts.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mkdir -p $OUTPUT_DIR/$VERSION_TAG/heron-kafka-bolt

echo "Copy heron-api artifacts ... "
cp -p -f ./release/heron-api-$VERSION_TAG.pom $OUTPUT_DIR/$VERSION_TAG/heron-api/
cp -p -f ./bazel-bin/heron/api/src/java/api-java-low-level-functional.jar $OUTPUT_DIR/$VERSION_TAG/heron-api/heron-api-$VERSION_TAG.jar
cp -p -f ./bazel-bin/heron/api/src/java/api-shaded.jar $OUTPUT_DIR/$VERSION_TAG/heron-api/heron-api-$VERSION_TAG.jar
cp -p -f ./bazel-bin/heron/api/src/java/heron-api-javadoc.zip $OUTPUT_DIR/$VERSION_TAG/heron-api/heron-api-$VERSION_TAG-javadoc.jar
cp -p -f ./bazel-bin/heron/api/src/java/libapi-java-low-level-functional-src.jar $OUTPUT_DIR/$VERSION_TAG/heron-api/heron-api-$VERSION_TAG-sources.jar

Expand Down
4 changes: 2 additions & 2 deletions tools/rules/heron_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def heron_java_proto_files():
"//heron/proto:proto_topology_java",
"//heron/proto:proto_tuple_java",
"//heron/proto:proto_stmgr_java",
"@com_google_protobuf//:protobuf_java",
"@maven//:com_google_protobuf_protobuf_java",
]

def heron_java_api_proto_files():
return [
"//heron/proto:proto_topology_java",
"@com_google_protobuf//:protobuf_java",
"@maven//:com_google_protobuf_protobuf_java",
]

0 comments on commit 12b8abc

Please sign in to comment.