We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839e9c4 commit af31115Copy full SHA for af31115
exonum-light-client/generate-javadocs.sh
@@ -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