Does Gradle has returnFirst as ivy? We have some legacy repos with conflicting versioning and existing ant scripts works well when returnFirst=true is set. Is there a way to do the same in Gradle?
No we don’t have the equivalent of ‘returnFirst’. If you use a ‘static version’ (eg ‘1.2’) then the first found will automatically be returned. If you use a ‘dynamic version’ (eg ‘1.+’) then all of the repositories will be searched, with the latest matching version being used.