IDE: IntelliJ + Cursive
I’m trying to handle following scenario: Whenever I’m importing a leiningen project in Intellij the Cursive/Leiningen plugin syncs the project automatically and tries to resolve missing dependencies. Some of them are located in an AWS S3 bucket, which need credentials. If my session-token is out of date the dependency resolution fails.
I’m trying to hook into the leiningen build process to check beforehand if my session token is still valid, otherwise the sync/leiningen task should fail and not even attempt to download these artifacts with invalid credentials.
I tried defining the check in :prep-tasks in my user profile but the dependency resolution seems to take place before nonetheless.
Do you have an idea, how I could tackle this? Thanks in advance