Skip to content

Commit cb2f30b

Browse files
committed
copy deps in build
1 parent 42b6956 commit cb2f30b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ jobs:
6060
- name: Build project (skip tests + javadoc)
6161
run: mvn -U clean install -DskipTests -Dmaven.javadoc.skip=true
6262

63+
- name: Populate libs from hm-apps deps
64+
run: |
65+
set -euxo pipefail
66+
TMPLIBS=./extras/export/libs
67+
mkdir -p "${TMPLIBS}"
68+
69+
# Copy hm-apps RUNTIME dependencies into extras/export/libs
70+
mvn -q -pl :hm-apps -am dependency:copy-dependencies \
71+
-DoutputDirectory="${TMPLIBS}" \
72+
-DincludeScope=runtime \
73+
-DexcludeClassifiers=sources,javadoc
74+
75+
# Add the app jar itself
76+
cp ./apps/target/hm-apps-*.jar "${TMPLIBS}"
77+
# (don’t ship sources in runtime bundle)
78+
rm -f "${TMPLIBS}"/*-sources.jar || true
79+
6380
- name: Assemble tar.gz bundle
6481
run: |
6582
set -euxo pipefail

0 commit comments

Comments
 (0)