Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include provided dependency in runtime classpath #2235

Open
tgodzik opened this issue Jan 3, 2024 · 0 comments
Open

Include provided dependency in runtime classpath #2235

tgodzik opened this issue Jan 3, 2024 · 0 comments
Labels
help wanted priority / low Any change that has a low priority to be fixed. sbt

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Jan 3, 2024

Currently, when exporting Bloop configuration files from sbt, the provided dependencies will be on compile classpath, but not on runtime classpath. This is inconvenient for local debugging, since we will run without jars needed by the application.

This actually is valid behaviour since -> A dependency with this scope is added to the classpath used for compilation and test, but not the runtime classpath, but is very inconvenient for users.

I would opt to include provided deps anyways in the runtime classpath, but I wasn't able to figure it out.

Originally opened in scalameta/metals#5943

Runtime classpath is set here https://github.com/scalacenter/bloop/blob/main/integrations/sbt-bloop/src/main/scala/bloop/integrations/sbt/SbtBloop.scala#L791

@tgodzik tgodzik added help wanted priority / low Any change that has a low priority to be fixed. sbt labels Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted priority / low Any change that has a low priority to be fixed. sbt
Projects
None yet
Development

No branches or pull requests

1 participant