Open tgodzik opened 2 years ago
Strongly support this as relying on sbt
for compilation if one simultaneously works on many projects is quite a waste of resource, imho.
sbt
then could be seen as a tool to define a project's structure/deps and run more complex scenarious such as pack and publish the code somewhere or handle versioning, but all the CPU-heavy compilation labour would be delegated to bloop
.
One of the features that we wanted to add at some point was allowing sbt to hand off all the compilation to Bloop, which would mean that running Bloop in Metals and using sbt CLI would use the same compilation
This however was never fully finished and I removed it in https://github.com/scalacenter/bloop/pull/1623 due to compatibility issues with never sbt versions.
The approach is archived at: https://github.com/scalacenter/bloop/tree/topic/offloading
I think we could try to add it as a separate plugin so that the overall Bloop build definition is simplified and contributors would be able to focus on one particular aspect (such as Zinc integration) in the main Bloop repo.