Open odisseus opened 11 hours ago
Hi there, thanks for the report.
https://github.com/JetBrains/sbt-idea-plugin/blob/08613ec76f951cee6989ab2b97a6d4467feb1f82/packaging/src/main/scala/org/jetbrains/sbtidea/packaging/PackagingKeysInit.scala#L23
You can experiment with setting packageLibraryMappings := Seq.empty
, or adjusting the default values. Mapping to None
means that the library dependency will be ignored in the final output.
Steps to reproduce
sbt clean packageArtifact
.myAwesomePlugin/target/plugin
directory. It will contain the JAR with the plugin code (and the dependency JARs if you add any), but thescala-library
dependency will be missing.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..
(this can be done by uncommenting a few lines inbuild.sbt
. After runningsbt clean packageArtifact
, observe that thetarget/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.