Le 28 mars 2016 à 22:36, Dale Henrichs <dale.henrichs@gemtalksystems.com> a écrit :
Stef,
You don't need to repeat packages in the requires statement. Requiring 'Math-DistributionGamma' is sufficient to pick up 'Math-Core', 'Math-DHB-Numerical', 'Math-Series', and 'Math-Core-Distribution' as requirements as well ⦠.
Indeed but it is a bad practice. If 'Math-DistributionBetaâ has direct dependencies to 'Math-Core', 'Math-DHB-Numerical', 'Math-Series', and 'Math-Core-Distributionâ, they should be expressed. Else, you will end up with a configuration with missing requirements. ex: if I update 'Math-DistributionGammaâ and do no depend anymore on 'Math-Seriesâ for example. I will remove 'Math-Seriesâ from 'Math-DistributionGammaâ requirements. Then, I end with a missing dependency for 'Math-DistributionBetaâ. What you could do is to define a group with 'Math-Core', 'Math-DHB-Numerical', 'Math-Series', and 'Math-Core-Distributionâ if it makes senses for your business logic. Then, both 'Math-DistributionGammaâ and 'Math-DistributionBetaâ could add this group as requirement. Note that factorization of dependencies is not always a good idea. If dependencies you want to factorize have nothing to do all together, itâs better to avoid to group them because they will change many times. Christophe