Reputation: 2436
In my gradle project, I am using Dropwizard Crypto for encrypting passwords. I have added the passphrase to IntelliJ env variable and when running "gradlew run" task got the error that can't decrypt. I have also added the env variable to ~/.bash_profile and run the IntelliJ from terminal and got same error. It works perfectly fine on Windows but on Mac not working (My os is Sierra 10.12) I have tried running the gradlew run task from terminal and got same error. Any help appreciated.
Upvotes: 0
Views: 81
Reputation: 3931
Try to
export IntelliJ=passphrase
from a terminal session and run gradlew from the same session.
Upvotes: 1
Reputation: 208097
It should probably be in
~/.bash_profile (with a dot)
or
~/.profile
Upvotes: 1