My gradle project is down because it has some dependencies on bitbucket repo and the bitbucket v1 api was deprecated.
I've googled a lot about how to migrate to v2 but doesn't find a good solution.
The v1 api in gradle is like this:
repositories {
maven {
credentials {
username "$mavenUser"
password "$mavenPassword"
}
url "https://api.bitbucket.org/1.0/repositories/<Team>/<repo>/raw/<branch>"
}
}