Skip to content

Commit

Permalink
Ensure that the Maven artifacts are built before uploading.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 321190139
  • Loading branch information
thaidn authored and copybara-github committed Jul 14, 2020
1 parent c1af323 commit a6e8492
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maven/execute-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ deploy_library() {
local javadoc="$5"
local pom_file="$6"

local library_file="$(echo_output_file "${workspace_dir}" "${library}")"
local src_jar_file="$(echo_output_file "${workspace_dir}" "${src_jar}")"
local javadoc_file="$(echo_output_file "${workspace_dir}" "${javadoc}")"

(
print_and_do cd "${workspace_dir}"
print_and_do bazel build "${library}" "${src_jar}" "${javadoc}"

local library_file="$(echo_output_file "." "${library}")"
local src_jar_file="$(echo_output_file "." "${src_jar}")"
local javadoc_file="$(echo_output_file "." "${javadoc}")"

# Update the version
do_if_not_dry_run sed -i \
's/VERSION_PLACEHOLDER/'"${VERSION}"'/' "${pom_file}"
Expand Down

0 comments on commit a6e8492

Please sign in to comment.