Skip to content

Commit af31115

Browse files
Add a script to generate LC Javadocs
1 parent 839e9c4 commit af31115

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
# Builds an archive with Javadocs from published artifacts.
3+
# The archive is put in './target/site'
4+
5+
# Fail immediately in case of errors and/or unset variables
6+
set -eu -o pipefail
7+
8+
# Generate the aggregated Javadocs for the published modules
9+
mvn clean javadoc:javadoc -Dmaven.javadoc.skip=false
10+
11+
# Create an archive to be published
12+
TARGET="${PWD}/target/site/"
13+
cd "${TARGET}"
14+
15+
ARCHIVE_NAME="light-client-apidocs.tgz"
16+
tar cvaf "${ARCHIVE_NAME}" "apidocs/"
17+
18+
echo "[INFO] Javadoc archive created in ${TARGET}/${ARCHIVE_NAME}"

0 commit comments

Comments
 (0)