Skip to content

Commit

Permalink
Build and add javadoc jar in release scripts.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 507611503
  • Loading branch information
mollyibot authored and copybara-github committed Feb 7, 2023
1 parent 383154d commit 4b6d3ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maven/release_jsinterop_annotations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ cd ${bazel_root}
# ask bazel to explicitly build both jar files
bazel build //java/jsinterop/annotations:libannotations.jar
bazel build //java/jsinterop/annotations:libannotations-src.jar
bazel build //java/jsinterop/annotations:annotations-javadoc.jar

jar_file=${bazel_root}/bazel-bin/java/jsinterop/annotations/libannotations.jar
src_jar=${bazel_root}/bazel-bin/java/jsinterop/annotations/libannotations-src.jar
javadoc_jar=${bazel_root}/bazel-bin/java/jsinterop/annotations/annotations-javadoc.jar
pom_template=${bazel_root}/maven/pom-annotations.xml

# we cannot run the script directly from Bazel because it doesn't allow interactive script
Expand All @@ -95,6 +97,7 @@ bazel run --script_path="$runcmd" ${deploy_target} -- ${deploy_flag} \
--artifact ${maven_artifact} \
--jar-file ${jar_file} \
--src-jar ${src_jar} \
--javadoc-jar ${javadoc_jar}
--pom-template ${pom_template} \
--lib-version ${lib_version} \
--group-id ${group_id} \
Expand Down

0 comments on commit 4b6d3ba

Please sign in to comment.