Steps to reproduce
- Download and extract the example project: plugin-repo.zip
- Run
sbt clean packageArtifact.
- Check the contents of
myAwesomePlugin/target/plugin directory. It will contain the JAR with the plugin code (and the dependency JARs if you add any), but the scala-library dependency will be missing.
- Run
sbt runIDE and open any project. You will get a classloader error. The message can sometimes be quite obscure, but it is always caused by the missing Scala library.
- For comparison, re-define the project so that its base directory is in
. (this can be done by uncommenting a few lines in build.sbt. After running sbt clean packageArtifact, observe that the target/plugin directory contains both the plugin JAR and the Scala library.
Adding ThisBuild / bundleScalaLibrary := true doesn't seem to have any effect.
This issue might be related to #106.
Steps to reproduce
sbt clean packageArtifact.myAwesomePlugin/target/plugindirectory. It will contain the JAR with the plugin code (and the dependency JARs if you add any), but thescala-librarydependency will be missing.sbt runIDEand open any project. You will get a classloader error. The message can sometimes be quite obscure, but it is always caused by the missing Scala library..(this can be done by uncommenting a few lines inbuild.sbt. After runningsbt clean packageArtifact, observe that thetarget/plugindirectory contains both the plugin JAR and the Scala library.Adding
ThisBuild / bundleScalaLibrary := truedoesn't seem to have any effect.This issue might be related to #106.