Skip to content

Commit c103bb8

Browse files
committed
chore(baseline): add dependency-tree + license snapshot capture
1 parent e3a934e commit c103bb8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/baseline/run-deptree.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
OUT="docs/superpowers/baselines/2026-04-17/raw"
4+
mkdir -p "$OUT"
5+
mvn -B dependency:tree -DoutputType=text -DoutputFile="$PWD/$OUT/dep-tree.txt"
6+
mvn -B license:aggregate-third-party-report \
7+
-Dlicense.outputDirectory="$PWD/$OUT" 2>&1 | tee "$OUT/license.log" || true
8+
# Fallback if license plugin not configured: list GAV+Maven Central license hints.
9+
if [[ ! -f "$OUT/aggregate-third-party-report.html" ]]; then
10+
mvn -B dependency:list -DincludeScope=runtime -DoutputFile="$PWD/$OUT/dep-licenses.txt" || true
11+
fi
12+
ls "$OUT" | grep -E '^(dep-tree|dep-licenses|aggregate-third-party)' || true

0 commit comments

Comments
 (0)