wagon-git
wagon-git copied to clipboard
promblem with mavenDeployer in Android Studio
Hi
I want to upload a Android Library to my private Bitbucket. The problem is, that the wagon-git do not take the right credentials. It takes the local credentials, that are used in windows and not the given in authentication(...)
my uploadArchives:
configurations {
deployerJar
}
dependencies {
...
deployerJar "ar.com.synergian:wagon-git:0.2.5"
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJar
pom.groupId = 'de.XXXXXXXXX'
pom.artifactId = 'foo'
pom.version = '3.1.1'
repository(url: "git:releases://https://[email protected]/<company>/>mavenrepo>.git") {
authentication(userName: "some_user", password: '**********')
}
}
}
the upload works but the commit is done by the user, that is registered in the windows installation of Git.
How should I do this with a private Bitbucket? All linked tutorials did not work in android studio.