I have private repo which contains a JSON file. I ...
# android
f
I have private repo which contains a JSON file. I want to pull that file into my android code using gradle task. I have successfully pull the file with public repo now i want to do it with private repo i have tried to provide the username and password as well
Copy code
task downloadFile(type: Download) {
    preemptiveAuth true
    username 'sldjfsdjf'
    password 'lskdjflsdfj'
    src '<https://bitbucket.org/><file>'
    dest new File(getRootDir(), '1.3.json')
    overwrite true

}
here is my gradle task Does anyone have any idea ?