# NB the latest tag is attached to quite an old release (v1.12.5) LATEST="$(curl https://api.github.com/repos/rtyley/bfg-repo-cleaner/releases/latest | jq '.tag_name')" # returns v1.13.0 CURRENT="$(curl https://api.github.com/repos/rtyley/bfg-repo-cleaner/releases | jq '.[0]' | {tag_name})" wget -c --directory-prefix ./bin/"${CURRENT}" # https://github.com/rtyley/bfg-repo-cleaner/releases/tag/v1.12.16 # 29 Sep 2017 # https://github.com/rtyley/bfg-repo-cleaner/releases/tag/v1.12.5 # 1 Oct 2015 # https://search.maven.org/remote_content?g=com.madgag&a=bfg&v=LATEST # https://search.maven.org/remotecontent?filepath=com/madgag/bfg/1.12.16/bfg-1.12.16.jar # https://search.maven.org/#artifactdetails|com.madgag|bfg|1.12.16|ja://search.maven.org/#artifactdetails|com.madgag|bfg|1.12.16|jar # http://central.maven.org/maven2/com/madgag/bfg-library_2.11/1.12.16/bfg-library_2.11-1.12.16.jar