I would not put anything with a carburetor into a tj. You are going to be doing far more work than is worth while. Your cheapest and easiest solution for a v8 swap is a magnum v8. Both the 5.2 and 5.9 are very common and by far easiest due to the fuel system and gauges working correctly. All but the engine mounts and radiator will be factory production parts that can be found in most junkyards.
If you did want a 5.0 the best one to use in your TJ would be an explorer 5.0 from 96-01. It's a nice little mass air motor with gt40 (96 only) or gt40p heads. Swap out the cam position sensor for a distributor and an a9l, or a9p CPU and you would have a good little runner.
Any v8 swap will require a new transmission as well. The ax5 can't even hold up well to the 2.5. An ax15 can be used with most v8 swaps. For the magnum v8 you need a bellhousing out of a Dakota with a v6. For all others you need to source a bellhousing and an expensive adapter kit as well. For an automatic you use the 44re, or 46re transmission for a magnum v8. You can retain your 231j transfer case with these transmission, but you need to swap in a post 1995 short 23 spline input shaft. They are common and most Dakota, cherokee, Durango, and ram vehicles used them.
The ford automatic is another story. You could try and find an adapter to retain the 231j, but I don't know of any for any of the ford automatic. At that point you need to than find a BW case that won't be to long. Or maybe an old C4 with a dana 20 out of an early bronco.