I'm currently struggling to configure the run configuration for a Play application in IntelliJ Idea so that I can use the debugger. When I run the application, sbt doesn't use my custom repository configuration (~/.sbt/repositories), which is why the build fails because private dependencies can't be fetched.
The console output looks like this:
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/bin/java -Dfile.encoding=UTF8 -Djline.terminal=none -Dsbt.log.noformat=true -Dsbt.global.base=/private/var/folders/xl/6qwsdd4927x3_s12z57zc5bh0000gn/T/sbt-global-plugin1stub -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -classpath "/Users/myuser/Library/Application Support/IntelliJIdea2018.1/Scala/launcher/sbt-launch.jar" xsbt.boot.Boot "project myproject" run
The issue is following flag, I guess "-Dsbt.global.base=/private/var/folders/xl/6qwsdd4927x3_s12z57zc5bh0000gn/T/sbt-global-plugin1stub" but I don't know how to remove it.