gradle-plugin-git-dependencies icon indicating copy to clipboard operation
gradle-plugin-git-dependencies copied to clipboard

How to pass credentials

Open sdamerla opened this issue 12 years ago • 2 comments

For my https://github.com/XXXXXXXXX/TestAndroidGradle.git how to pass credentials

git org.eclipse.jgit.api.errors.TransportException: https://github.com/XXXXXXXXXXXX/TestAndroidGradle.git: not authorized

compile('com.xxxxxxxxx:library:1.0.0_Build-3@aar').ext.git = ('https://github.com/XXXXXXXXXXXX/TestAndroidGradle.git') In my ubuntu home directory ~/.gradle/gradle.properties I already specified the below two properties github.credentials.username=XXXXX github.credentials.password=XXXXX

Thanks Samba Damerla

sdamerla avatar Mar 04 '14 18:03 sdamerla

You will need to provide the user name and password in the git https url like this: https://${github.credentials.username}:${github.credentials.password}@github.com/XXXXXXXXX/TestAndroidGradle.git Or just use ssh like this: ssh://[email protected]/XXXXXXXXX/TestAndroidGradle.git

amedhat3 avatar Jan 29 '15 01:01 amedhat3

Get the following error using an ssh://[email protected]:group/project.git URL format:

Caused by: org.eclipse.jgit.errors.NotSupportedException: URI not supported: ssh:///[email protected]:group/project.git

andreimaximov avatar Jan 25 '16 20:01 andreimaximov