[Question] Multi-module cache UserDev
devwckd opened this issue · 3 comments
Hi, I'm using io.papermc.paperweight.userdev
on different modules on a mono-repo and I noticed that the cache is contained on the submodule, like the following:
It's re-building devBundle for each project even though I use the same version on all of them, is there a way I can specify a common cache folder for all of them so it doesn't run more than once?
Thanks :D
Same here. I would like something like this to reduce my time to setup all gradle tasks in my IDE as it takes a lot of time to read and make mapping of the minecraft-server itself.
If multiple projects in a build depend on the same dev bundle they will share caches, this has been the case for quite a while (699b849). We need more details about your setup beyond a screenshot of cache directories. If you aren't able to isolate what's causing the issue or share your repo, creating a minimal reproducer is probably the best way to diagnose this.
Also, keep in mind if you were adding paperweight to one subproject at a time in the process of setting up your build, caches may be left behind that aren't actually used any more, which could look misleading.
If multiple projects in a build depend on the same dev bundle they will share caches, this has been the case for quite a while (699b849). We need more details about your setup beyond a screenshot of cache directories. If you aren't able to isolate what's causing the issue or share your repo, creating a minimal reproducer is probably the best way to diagnose this.
Also, keep in mind if you were adding paperweight to one subproject at a time in the process of setting up your build, caches may be left behind that aren't actually used any more, which could look misleading.
Got it, I deleted all .gradle and build folders and rebuillt the project and it only created one .gradle, seems like its working, thanks for the help :D