JetBrains / sbt-idea-plugin

Develop IntelliJ plugins with Scala and SBT
Apache License 2.0
97 stars 28 forks source link

How to set unmanaged-jars to Provided or Runtime scope #74

Open rikvdkleij opened 4 years ago

rikvdkleij commented 4 years ago

Every time after refreshing my plugin project, I have to remember to set the scope of the unmanaged jars to Provided. Otherwise I can't start an IntelliJ instance from within IntelliJ (because all intellij classes are twice on the classpath).

I tried to figure out how to change my build.sbt to solve this but I can't find a solution.

Many thanks in advance!

mutcianm commented 3 years ago

Are you starting IntelliJ via an sbt task or a generated run configuration?

rikvdkleij commented 3 years ago

The IntelliJ instance which is started from within IntelliJ is started by a plugin (run) configuration.