File tree Expand file tree Collapse file tree
synthtool/gcp/templates/java_library/.kokoro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,12 +43,13 @@ function completenessCheck() {
4343 # Output dep list with compile scope generated using the original pom
4444 # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency.
4545 # This is stripped from the output as it is not present in the flattened pom.
46+ # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
4647 msg " Generating dependency list using original pom..."
47- mvn dependency:list -f pom.xml -Dsort=true | grep ' \[INFO] .*:.*:.*:.*:.*' | sed -e s/\\ s--\\ smodule.* // | grep -v ' :test$ ' > .org-list.txt
48+ mvn dependency:list -f pom.xml -DincludeScope=runtime - Dsort=true | grep ' \[INFO] .*:.*:.*:.*:.*' | sed -e s/\\ s--\\ smodule.* // > .org-list.txt
4849
49- # Output dep list generated using the flattened pom (test scope deps are ommitted )
50+ # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes )
5051 msg " Generating dependency list using flattened pom..."
51- mvn dependency:list -f .flattened-pom.xml -Dsort=true | grep ' \[INFO] .*:.*:.*:.*:.*' > .new-list.txt
52+ mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime - Dsort=true | grep ' \[INFO] .*:.*:.*:.*:.*' > .new-list.txt
5253
5354 # Compare two dependency lists
5455 msg " Comparing dependency lists..."
8586else
8687 msg " Errors found. See log statements above."
8788 exit 1
88- fi
89+ fi
You can’t perform that action at this time.
0 commit comments