Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 9fac337

Browse files
authored
fix: Exclude a few dependencies from dependency check. (#745)
Exclude the following dependencies from dependency check since they are now test dependencies brought in transitively by java-pubsub. grpc-services, re2j, opencensus-proto, bcpkix-jdk15on, protobuf-java-util
1 parent a49f9eb commit 9fac337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.kokoro/dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ function completenessCheck() {
6464
# This is stripped from the output as it is not present in the flattened pom.
6565
# Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
6666
msg "Generating dependency list using original pom..."
67-
mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt
67+
mvn dependency:list -f pom.xml -DincludeScope=runtime -DexcludeArtifactIds=protobuf-java-util,grpc-services,re2j,opencensus-proto,bcpkix-jdk15on -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt
6868

6969
# Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes)
7070
# [3/1/2021] Adding -DexcludeArtifactIds=annotations,gson,commons-codec,commons-logging,animal-sniffer-annotations
7171
# due to maven dependency plugin setting transitive compile/runtime deps scope to test when it is also a test dep
7272
# Raised issue: https://issues.apache.org/jira/browse/MDEP-737
7373
msg "Generating dependency list using flattened pom..."
74-
mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -DexcludeArtifactIds=annotations,commons-codec,commons-logging,animal-sniffer-annotations,bcprov-jdk15on -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
74+
mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -DexcludeArtifactIds=annotations,commons-codec,commons-logging,animal-sniffer-annotations,bcprov-jdk15on,protobuf-java-util,grpc-services,re2j,opencensus-proto,bcpkix-jdk15on -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
7575

7676
# Compare two dependency lists
7777
msg "Comparing dependency lists..."

0 commit comments

Comments
 (0)