Open eikek opened 2 years ago
Thanks for reporting! Looks like we never did https://github.com/scalacenter/bloop/pull/1387 for sbt, so we should be able to add it for the sbt integration.
I'm trying to be disciplined with the dependencies using an sbt plugin https://github.com/cb372/sbt-explicit-dependencies.
The plugin can report nice messages about unused and undeclared compile time dependencies.
However, if you probably will want to exclude certain dependencies like for logging or Netty, because they do not appear in your source code directly, for example, if you use this plugin in CI.
The proper way of doing this is by marking the dependencies' scope such as % Runtime
, % Test
.
The current workaround is to use the unusedCompileDependenciesFilter -= moduleFilter("org.scalaz", "scalaz")
setting from the plugin to explicitly ignore some dependencies from the report, however, it's not very ideal.
Hello! I have an issue with
bloop run …
in one of my projects where it seems that dependencies that are declrared in sbtsRuntime
config are not visible. I prepared a small example project to reproduce it. Thank you very much!Using this source:
Where the logback dependency is declared for the
Runtime
configuration.With SBT:
With bloop:
After running
sbt bloopInstall
bloop-demo.tar.gz