Sara
Sara

Reputation: 2436

OSX: env variable is not available

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

Answers (2)

Laurent Crivello
Laurent Crivello

Reputation: 3931

Try to

export IntelliJ=passphrase

from a terminal session and run gradlew from the same session.

Upvotes: 1

Mark Setchell
Mark Setchell

Reputation: 208097

It should probably be in

~/.bash_profile (with a dot)

or

~/.profile

Upvotes: 1

Related Questions