Skip to content

Scala library is not bundled when the plugin is defined as a nested project #133

Description

@odisseus

Steps to reproduce

  1. Download and extract the example project: plugin-repo.zip
  2. Run sbt clean packageArtifact.
  3. 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.
  4. 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.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions