Until now, I used the Artifactory REST API to determine the last version (last snapshot) of a maven artifact with groupId
and artifactIid
:
/api/search/latestVersion?g={groupid}&a={artifactid}
This gives me exactly a string with the highest/last available (snapshot) version of this artifact.
However, this is sometimes really slow and one recommendation was to use the Artifactory Query Language (AQL).
Unfortunately I have not yet been able to find out how to map this functionality in AQL.
Could someone give me a clue as to what a corresponding query in AQL could look like?
Thanks in advance!