Open lwronski opened 2 years ago
Thanks for reporting! We might not be correctly copying the results to the client class directories.
As far as I understand - Bloop intentionally doesn't copy resources into the classes dir. Instead it puts the resources dir on the classpath (and expects it to be on the classpath of dependent projects). I guess this is an optimisation to save on file copying. This works fine for compile/test/run but not packaging. It might be easier to change the package code to include the resources dir.
Thanks for pointing that out! Bloop wasn't doing any packaging yet, so that would explain it.
@tgodzik It's worth noting that the issue is not about packaging, @lwronski provided an example with sbt run
which compiles and runs code.
For me, the main issue is that once compiled stuff shouldn't change its behavior. If bloop puts current resources from the working directory on the classpath then after compilation I may do some changes in resources. Suddenly the program is working differently and it could be very hard to spot why.
Every build tool which I know is copying resources and I expect that Bloop behaves similarly.
Hello, I have an issue with
bloop run
, that resource files are not copied to the classes directory.Using this source:
With SBT:
classes directory
containsinput
fileWith bloop:
After running
sbt bloopInstall
but with
bloop
classes directory doesn't containinput
file