I have a gradle build that we have publishing to a SNAPSHOT repo for non-release versions on multiple projects. The build publishes to an Artifactory SNAPSHOT repo and it generates a timestamp on that repo when I publish.
How do I get the full SNAPSHOT filename at the time of publishing so I can store it elsewhere? E.g. MyArchive-1.0.0-SNAPSHOT-NAME-20180313.163134-16.zip instead of the base name: MyArchive-1.0.0-SNAPSHOT-NAME.zip
Afraid I could not find a gradle way to it. Kind of hacky, but you could have a task that runs after your publish task then query the generic snapshot url and capture what the redirected url is from that. I entertained this, but didn’t write anything because the need for this became unnecessary.
(and yes, if there are two different publishes of the same artefact at the same time, the output of the first one published may erroneously show the timestamp of the second one published)