Military transport planes and commercial airliners are very different, especially in the case of fitting engines.
Commercial airliner engines are very comparable to each other, most are designed to fit onto the similar airframes in the same weight class. They usually have very similar performances and aerodynamic layout, they are designed to be plug and play. Even if they have differences, it's very minimal, more like the different engines in the VW family, very easily mounted onto another VW car.
On the other hand, military planes are highly specialized, especially when it's a generation changing engine, low-by-pass to high-by-pass, also a very very different aero layout. That's like switching a high revving sportscar engine with a low rev high torque diesel truck engine. Of course, the big wing span and low top speed would guarantee the plane to not fall out of the sky with new engine and no aero modifications, but to get the optimal performance and efficiency, modifications are needed, and it would take a long time, say at least 1 to 3 years.