You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed slimjar generates a copy of every dependency for every application using it under a relocated folder regardless of whether anything was relocated. I'm curious as to whether there's a reason for this, seeing as the files aren't exactly identical in size. If not, is there currently a way to avoid this behaviour?
The text was updated successfully, but these errors were encountered:
The reason for this was for different applications to be able to share the same downloaded dependency and each have different relocated jars.
Another advantage is to property be able to detect change in the library version with the hash from the repo.
If needed, you can customize the behavior of each component by providing different implementations in the ApplicationBuilder.
Heres what I would recommend for your requirement:
Make an implementation of RelocationHelper that does not generate anything. Use this as the relocationHelper in the application builder.
I've noticed slimjar generates a copy of every dependency for every application using it under a
relocated
folder regardless of whether anything was relocated. I'm curious as to whether there's a reason for this, seeing as the files aren't exactly identical in size. If not, is there currently a way to avoid this behaviour?The text was updated successfully, but these errors were encountered: