Skip to content

Commit 5d11bd2

Browse files
chore: Update publish_javadoc.sh (#864)
* (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]>
1 parent 18c5dbd commit 5d11bd2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

synthtool/gcp/templates/java_library/.kokoro/release/publish_javadoc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader
3838
# compile all packages
3939
mvn clean install -B -q -DskipTests=true
4040

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

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

6060
popd
6161

62-
# V2
62+
# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates.
63+
6364
mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"
6465

6566
pushd target/devsite/reference

0 commit comments

Comments
 (0)