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
{{ message }}
Repository navigation
Remove any unnecessary dependency from distribution #9075
Not only to reduce the distribution size but also to reduce the vulnerability surface, we should review the dependencies included in the distribution and keep only those strictly necessary to runtime and re-augmentation.
As the server is a mutable jar, these additional dependencies are a trade-off as part of continuous testing support from Quarkus. However, in theory, these dependencies won't actually be loaded in the runtime application.
Discussion
No response
Motivation
Not only to reduce the distribution size but also to reduce the vulnerability surface, we should review the dependencies included in the distribution and keep only those strictly necessary to runtime and re-augmentation.
Details
Looks like the best approach should be to exclude these dependencies through Maven (instead of using Quarkus properties such as quarkus.class-loading.removed-artifacts).
The proposal is to have a specific profile in the root pom that explicitly excludes the unwanted dependencies. The trade-off here is that we need to make sure the distribution is built using this profile.
Reacted by Dominik Guhr, Andre F de Miranda, larsw, Bruno Oliveira da Silva, Jakub Jirutka and Rick Peironcely
Sent #9077. I'm still investigating an issue related to the quarkus-vault extension where testcontainers dependencies can not be be excluded for this one due to compilation errors when running augmentation. Looks like this extension is running (or referencing) dev mode related code when not running dev mode but it shoudln't (similar to other extensions).
Activity
pedroigor commentedon Dec 10, 2021
Sent #9077. I'm still investigating an issue related to the
quarkus-vaultextension wheretestcontainersdependencies can not be be excluded for this one due to compilation errors when running augmentation. Looks like this extension is running (or referencing) dev mode related code when not running dev mode but it shoudln't (similar to other extensions).pedroigor commentedon Dec 10, 2021
See quarkiverse/quarkus-vault#12.
15 remaining items
trixpan commentedon Jul 21, 2022
@DGuhr thanks for the write up. I am 100% in agreement with the approach suggested and glad the concerns of community are being taken care of. ;-)
vmuzikar commentedon Jan 12, 2023
Will be (partially) resolved by #9144
vmuzikar commentedon May 17, 2023
Consider removing:
Remove elytron and devservices
Remove elytron and devservices