Skip to content

Instantly share code, notes, and snippets.

@deusaquilus
Created January 5, 2021 04:35
Show Gist options
  • Save deusaquilus/dd48c2d83b3ae152f16c4bab44c2c0a6 to your computer and use it in GitHub Desktop.
Save deusaquilus/dd48c2d83b3ae152f16c4bab44c2c0a6 to your computer and use it in GitHub Desktop.
Get maven artifacts with coordinates from central
#!/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