Skip to content

Instantly share code, notes, and snippets.

@BenWhitehead
Created November 17, 2021 18:32
Show Gist options
  • Save BenWhitehead/ea969f165e61eb283d9f0489f75d3ded to your computer and use it in GitHub Desktop.
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`
#!/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