Created
November 17, 2021 18:32
-
-
Save BenWhitehead/ea969f165e61eb283d9f0489f75d3ded to your computer and use it in GitHub Desktop.
A small bash script which specifies the maven (mvn) command to list resolution of those artifacts from `com.google.cloud:libraries-bom`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function main () { ( | |
includePatterns=( | |
"com.google.apis.grpc:*" # generated grpc and proto libraries | |
"com.google.api:*" # gax, api-common, etc. | |
"com.google.api-client:*" # api client between discovery doc clients and http-client | |
"com.google.apis:*" # discovery doc generated clients | |
"com.google.auth:*" # | |
"com.google.cloud:*" # "clients" gapics/veneers | |
"com.google.code.gson:*" # | |
"com.google.guava:guava:*" # | |
"com.google.http-client:*" # | |
"com.google.oauth-client:*" # | |
"com.google.protobuf:*" # | |
"io.grpc:*" # | |
"io.netty:*" # | |
"io.opencensus:*" # | |
) | |
includes="" | |
printf -v includes '%s,' "${includePatterns[@]}" | |
mvn dependency:tree -Dincludes="$includes" | |
) } | |
main | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment