WJ D30, in XJ/MJ is mostly plug n pray. I just swapped one in myself, but there are things you need to address.
One of the reasons I opted to use it, aside from picking up for cheap, is the matching gears that my Exploder 8.8 has (3.73)
Unit bearings are 5x5 lug pattern, meaning stock XJ wheels will not bolt on.
With the bigger brakes/steering, you need larger dia. wheels. You could use XJ wheels or other, but would require wheel adapters. As the axle is wider than XJ, not recommended.
Upside is that the spring mounts and the CA mounts are close enough to work.
You will need/want to swap the pinion flange, to a standard joint yoke.
Sway bar mounts may work. IRO makes U-joint axle shafts.
I got my complete WJ 30 for cheap, already running JK wheels, so not using wheel adapters anymore.
IIRC, the WJ 30 is not "oddball" like the JK, so the carrier should work in a XJ/MJ 30. If you want cheap LSD for 30 and you can find a WJ 30/carrier for cheap enough, that should swap in. I do know that the WJ 30 can use a standard 30 yoke.
The rear axle housings are alum., not really worth your time to do all the work and swap in.