Skip to content

Commit b5affd5

Browse files
committed
add profile to dependency:tree in production
1 parent 24e2be9 commit b5affd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/pit/lib/lib-validate.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ runValidations() {
4949
[ -n "$OFFLINE" ] && cmd="$cmd --offline" && compile="$compile --offline"
5050
# remove dev-bundle and node_modules when in dev mode
5151
[ "$mode" = dev ] && rm -rf node_modules src/main/dev-bundle
52-
# output the mvn dependency tree to the file if there is a pom.xml (useful for debugging)
53-
[ -z "$VERBOSE" -a -f pom.xml ] && runToFile "$MVN -ntp -B dependency:tree" "$file"
52+
# output the mvn dependency tree to the file if there is a pom.xml or build.gradle (useful for debugging)
53+
[ "$mode" = prod ] && H="-Pproduction,it" || H=""
54+
[ -z "$VERBOSE" -a -f pom.xml ] && runToFile "$MVN -ntp -B dependency:tree $H" "$file"
5455
[ -z "$VERBOSE" -a -f build.gradle ] && runToFile "$GRADLE dependencies" "$file"
5556

5657
# check if the app has spring or hilla dependencies in certain projects that should not have them

0 commit comments

Comments
 (0)