I'm trying to use SBT behind a corporate firewall. I'm required to use a password-protected Artifactory to resolve dependencies.
I've got a plugin file which contains the following text:
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
I've tried this file in the following locations:
- %USERPROFILE%.sbt\0.13\plugins\credentials.sbt
- %USERPROFILE%.sbt\plugins\credentials.sbt
- \project\project.sbt (added the line to an existing file)
None of them seem to have the desired effect of loading the credentials file. In fact there's absolutely nothing in the sbt.last.log file which suggests that this is the correct way to load credentials.
Can you help me?
- How do I prove that a plugin loaded? Can put some kind of log message in plugins file so that I can verify that SBT actually loaded it?
- What's the correct way to get a credentials object loaded on Windows? Is this actually the correct way to load it?
EDIT 0: I tried to put some garbage text in the locations above to see if I can make an error that was visible in the update.log file. I didn't get anything. From that I can safely conclude that my plugins aren't getting loaded at all.
EDIT 1: I've added this as an issue on SBT's issue tracker.