Closed moglideveloper closed 3 years ago
This is actually related to https://github.com/sbt/sbt/issues/4632 scala-library is correctly added to "Provided" but still ends up in the "Compile" scope because it's a transitive dependency of "better-files" which is an expected sbt behaviour. I guess the only reasonable solution is to explicitly filter out all scala-library instances from the resulting classpath.
If any libraryDepencies is used, then scala-library is also get bundled even when bundleScalaLibrary is set to false.
Below is the command that is used to package plugin :-
sbt clean compile packageArtifact
Simplified project to reproduce this issue :- https://github.com/moglideveloper/SamplePlugin
build.sbt