Maybe the order fixed your issue, but it is a fragile solution. Unintentional changes can break your project again. The referred documentation and also my practice show a better way to fix the transitive dependency version issue
>> Dependency management - this allows project authors to directly specify the versions of artifacts to be used when they are encountered in transitive dependencies or in dependencies where no version has been specified.
Simple declare in the dependency management section the required version of byte buddy. It will not be changed unintentionally.