Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle and Artifactory Plugin with API Key

I am currently running into trouble with the Artifactory Plugin for Gradle. We are working in corporate and have read access to some artifacts via api key (We do not have access to a username:password combination). Now I am struggling with including the key into our gradle build (configuring the Artifactory Plugin). Is there any solution to this or is there any support for api key authentication in the Artifactory Plugin?

like image 827
Iwan1993 Avatar asked Oct 16 '25 14:10

Iwan1993


1 Answers

I configured gradle to use my Artifcatory API key by adding this to my gradle.properties file:

# configure Artifactory access
artifactoryContextUrl=<url>
artifactoryUser=<username>
artifactoryPassword=<api-key>
like image 58
arne.z Avatar answered Oct 18 '25 07:10

arne.z