Skip to content

Commit 19994a4

Browse files
committed
update_version.sh: make maven run in batch mode
Newer versions of Maven has colored outputs, which messes with the script. The -B (batch) option disables colors. Could folks using older Mavens let me know if your versions accept the batch option?
1 parent 0c89651 commit 19994a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utilities/update_versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ echo -e "\n${BOLD}Executing${NC} mvn -q clean install -DskipTests -Dmaven.javado
110110
mvn -q clean install -DskipTests -Dmaven.javadoc.skip=true
111111

112112
echo -e "\n${BOLD}Checking modules${NC}"
113-
modules=$(mvn dependency:tree | grep "\[INFO\] com\.google\." | sed -r "s/.*:(.*):(.*):(.*)/\1:\3/g")
113+
modules=$(mvn -B dependency:tree | grep "\[INFO\] com\.google\." | sed -r "s/.*:(.*):(.*):(.*)/\1:\3/g")
114114
declare -A module_version_map
115115
root_module=""
116116
for item in ${modules[*]}

0 commit comments

Comments
 (0)