Authenticated downloads from Nexus repository


How to download files from a private NEXUS repository. I mean, i will specify only the URL containing folder. I need to somehow pass my credentials while downloading.
So Is there a way to make authenticated downloads via gradle task download, or groovy way or any other way? (Btw I am working on a gradle java project)

Any suggestions/pointers would be welcome :slight_smile:

Regards, Pradeep