strong-caravan-64652
12/13/2019, 5:31 PMgoogle-cloud-logging
) puts duplicate classes/resources on the class path. Is there an elegant way to flag this as "OK" in my 3rdparty
build file for this library, or do I have to do Duplicate.SKIP
in all of my bundle files for those duplicate classes/resources?
===== For target JvmBinary(BuildFileAddress(src/jvm/com/.../graphql/bin/BUILD, bin)):
Duplicate classes and/or resources detected in artifacts: ('com.google.api.grpc-proto-google-cloud-logging-v2-0.82.0.jar', 'com.google.api.grpc-proto-google-common-protos-1.17.0.jar')
com/google/logging/type/HttpRequest$Builder.class
com/google/logging/type/LogSeverityProto.class
com/google/logging/type/HttpRequestProto$1.class
com/google/logging/type/HttpRequestProto.class
google/logging/type/http_request.proto
com/google/logging/type/HttpRequest$1.class
com/google/logging/type/LogSeverity.class
com/google/logging/type/HttpRequestOrBuilder.class
google/logging/type/log_severity.proto
com/google/logging/type/LogSeverityProto$1.class
... 2 more ...
Both of those artifacts seem to be compile dependencies of https://mvnrepository.com/artifact/com.google.cloud/google-cloud-logging/1.99.0Duplicate.SKIP
my best option here?happy-kitchen-89482
12/18/2019, 6:23 AMaverage-vr-56795
12/19/2019, 11:18 AMwitty-crayon-22786
12/19/2019, 5:00 PM./pants help $task
for the "dupe checker" task. i forget what it is called. one sec.$ ./pants help binary.dup
Scrubbed PYTHONPATH=/Users/stuhood/src/pants/src/python: from the environment.
binary.dup:
Detect JVM classes and resources with the same qualified name on the classpath.
--binary-dup-exclude-dirs=<str> (--binary-dup-exclude-dirs=<str>) ..., --binary-dup-exclude-dirs="[<str>, <str>, ...]", --binary-dup-exclude-dirs="+[<str>, <str>, ...]" (default: ['META-INF/services'])
Directory names to exclude from duplicate check.
--binary-dup-exclude-files=<str> (--binary-dup-exclude-files=<str>) ..., --binary-dup-exclude-files="[<str>, <str>, ...]", --binary-dup-exclude-files="+[<str>, <str>, ...]" (default: ['.DS_Store','<http://cmdline.arg.info|cmdline.arg.info>.txt.1','dependencies','license','license.txt','notice','notice.txt'])
Case insensitive filenames (without directory) to exclude from duplicate
check.
--binary-dup-exclude-patterns=<str> (--binary-dup-exclude-patterns=<str>) ..., --binary-dup-exclude-patterns="[<str>, <str>, ...]", --binary-dup-exclude-patterns="+[<str>, <str>, ...]" (default: ['^META-INF/[^/]+\.(SF|DSA|RSA)$'])
Regular expressions matching paths (directory and filename) to exclude from
the duplicate check.
binary.dup
or bundle.dup