Skip to content

Commit

Permalink
chore: Update publish_javadoc.sh (#864)
Browse files Browse the repository at this point in the history
* (chore) Update publish_javadoc.sh

* add `export` to the envVar's to make sure maven knows about them.
* report the Java version

* chore: update script

* remove `java -version`

Co-authored-by: Jeffrey Rennie <[email protected]>
  • Loading branch information
lesv and SurferJeffAtGoogle authored Dec 7, 2020
1 parent 18c5dbd commit 5d11bd2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader
# compile all packages
mvn clean install -B -q -DskipTests=true

NAME={{ metadata['repo']['distribution_name'].split(':')|last }}
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
export NAME={{ metadata['repo']['distribution_name'].split(':')|last }}
export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)

# build the docs
mvn site -B -q
Expand All @@ -59,7 +59,8 @@ python3 -m docuploader upload . \

popd

# V2
# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates.

mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"

pushd target/devsite/reference
Expand Down

0 comments on commit 5d11bd2

Please sign in to comment.