Skip to content

Commit baf3d03

Browse files
authored
Make it easier to run dependency analysis (#778)
* make it easier to run dependency analysis * add missing help info * add dependency tree printout
1 parent ecb84a2 commit baf3d03

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
java_distribution: zulu
2626
javadoc_version: 24 # newer than `java_version` for better javadoc
2727
groovy_version: 4.x
28-
#CCDB_CONNECTION: 'sqlite:////cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite'
28+
CCDB_CONNECTION: 'sqlite:////cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite'
2929
nthreads: 1
3030

3131
jobs:

build-coatjava.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ usage='''build-coatjava.sh [OPTIONS]... [MAVEN_OPTIONS]...
1616
--spotbugs also run spotbugs plugin
1717
--unittests also run unit tests
1818
19+
--depana run dependency analysis (only)
20+
1921
--quiet run more quietly
2022
--no-progress no download progress printouts
2123
@@ -30,6 +32,7 @@ usage='''build-coatjava.sh [OPTIONS]... [MAVEN_OPTIONS]...
3032
'''
3133

3234
cleanBuild="no"
35+
anaDepends="no"
3336
runSpotBugs="no"
3437
downloadMaps="yes"
3538
runUnitTests="no"
@@ -45,6 +48,7 @@ do
4548
--nomaps) downloadMaps="no" ;;
4649
--unittests) runUnitTests="yes" ;;
4750
--clean) cleanBuild="yes" ;;
51+
--depana) anaDepends="yes" ;;
4852
--quiet)
4953
mvnArgs+=(--quiet --batch-mode)
5054
wgetArgs+=(--quiet)
@@ -100,7 +104,6 @@ download () {
100104
return $ret
101105
}
102106

103-
104107
# download the default field maps, as defined in libexec/env.sh:
105108
# (and duplicated in etc/services/reconstruction.yaml):
106109
source libexec/env.sh --no-classpath
@@ -142,6 +145,12 @@ if [ $cleanBuild == "yes" ]; then
142145
exit
143146
fi
144147

148+
if [ $anaDepends == "yes" ]; then
149+
mvn dependency:analyze -DfailOnWarning=true -pl '!org.jlab.coat:coat-libs' --no-transfer-progress
150+
mvn dependency:tree -Ddetail=true --no-transfer-progress
151+
exit 0
152+
fi
153+
145154
# start new installation tree
146155
mkdir -p $prefix_dir
147156
cp -r bin $prefix_dir/

0 commit comments

Comments
 (0)