Announcement Announcement Module
Collapse
No announcement yet.
Encrypting passwords in BuildConfig.groovy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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:

    Code:
    grails.project.dependency.distribution = {
    	remoteRepository(id: "release", url: "http://myrepository.com/") {
    		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!
Working...
X