Created
January 5, 2021 04:35
-
-
Save deusaquilus/dd48c2d83b3ae152f16c4bab44c2c0a6 to your computer and use it in GitHub Desktop.
Get maven artifacts with coordinates from central
This file contains hidden or 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 | |
group=$1 | |
artifact=$2 | |
version=$3 | |
# Diff like this: | |
# diff <(search_maven_gav.sh io.getquill 'quill-*_2.13' 3.6.0-RC2 | awk '{print $2}' | sort) <(search_maven_gav.sh io.getquill 'quill-*_2.13' 3.6.0-RC3 | awk '{print $2}' | sort) | |
curl -s "https://search.maven.org/solrsearch/select?rows=100&q=g:${group}+AND+a:${artifact}+AND+v:${version}" | jq --raw-output '.response.docs[] | [.g, .a, .v]|@tsv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment