Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use an Encrypted Password to a Maven Repository in Gradle

I'm currently trying to transisiton a maven build to a Gradle build. The show stopper hurdle I've hit is that our internal artifacts are deployed to an internal repository that requires authentication to read.

And you know what authentication means... usernames and passwords. The problem is I don't want to require developers to store their password as plaintext on their hard drives. Maven supports password encryption but I'm not seeing how to make Gradle do it.

Is there some magic access to the Ivy CredentialStore that will support encrypted passwords? or will I have to wait for a new version?

like image 815
shemnon Avatar asked Dec 22 '10 22:12

shemnon


1 Answers

The gradle-credentials plugin will let you encrypt the contents of a gradle.encrypted.properties file, which will then be available in the build as properties of the credentials object.

The gradle maven settings plugin will let you use Maven's system for encrypting/decrypting credentials.

like image 121
jonnybot Avatar answered Sep 21 '22 21:09

jonnybot