Announcement Announcement Module
No announcement yet.
Encrypting passwords in BuildConfig.groovy Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Encrypting passwords in BuildConfig.groovy

    I am in the process of developing a Grails plugin (for Grails 2) and want to release it to our internal maven repository which is password protected. From the documentation, I have configured the repo in my BuildConfig.groovy as follows:

    grails.project.dependency.distribution = {
    	remoteRepository(id: "release", url: "") {
    		authentication username:"myusername", password:"mypassword"
    The above configuration works for releasing the plugin, however it leaves the password exposed in plain text. How can I encrypt the password so that it is not exposed? Externalizing it encrypted would be ideal but I'd take either encrypting it within the app or externalizing it. Thanks!