Download latest snapshot from Artifactory

lately I was looking for a way to download the latest artifact for a given GroupID and ArtifactID. When using the community version of Artifactory I learned that this option is not available.

In nexus I used something like -

After reading some posts about Artifactory, I managed to find a gist with a bash script that actually does exactly what I need.