Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

URL for accessing .aar file from bitbucket repo using Maven artifacts is changed in 2.0 ?

Tushar Pandey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2019

Hi all,

In version 1.0 we were accessing out library.aar file from bitbucket like this :

allprojects {
repositories {
google()
jcenter()
maven {
url USER_JAR_LIB
credentials {
username USERNAME
password PASSWORD
}
}
maven {
url "https://maven.google.com"
}
}

by using this URL

USER_JAR_LIB=https://api.bitbucket.org/1.0/repositories/livecareer/android-userservices/raw/libs

But in 2.0 we are unable to access it ?

Is there any new-url to access it 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2019

Hello @Tushar Pandey,

You can use this URL to get raw file content:

`https://bitbucket.org/<account>/<repository>/raw/<commit-sha-or-ref>/<filename>`

So, in your case it would be the following, assuming you want to take it from `master` branch:

`https://bitbucket.org/livecareer/android-userservices/raw/master/libs/library.aar`

Hope this helps.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events