I would like to skip publishing an artifact if it already exists in the repository, but as far as I understand from the documentation, this is not a way to do this. There is an attribute overwrite, but if set to false, which will result in publication failure if the artifact exists. I definitely don't want to rewrite the artifact.
I examined the use of <ivy:info>and <ivy:findrevision>to see if an artifact exists and set a property that I can use for my publishing purpose (for example, as an attribute unless), but none of these tasks allows me to specify a repository for verification.
I would prefer not to use an external taskdef, for example, antcontrib try / catch tasks.
Does anyone have any other suggestions?
source
share