Nothing personal JFR
I absolutely hate that answer "just buy a 4.0", I love my Jeep, it has history and love and memories and things I cant unbolt and just put on something else.
That being said, the 2.5 to 4.0 swap is easy if you have a decent well equipped shop and are mechanically inclined, if you arent, its probably the hardest thing you will do, this is why-
you have to cut off the 2.5 motor mounts and weld new 4.0 mounts on your frame, measure 27 times and weld once, still you may be a little off lol, its hard to find a good place to measure from is the thing, next, you cant just swap in the engine, you need the AX-15 transmission or the R42LE, with the AX-15, you need the transfer case too, the input splines are different from the one you have. the donor vehicle should be present, you will need the ECM and ALL WIRING ! ! I cant stress that enough, you have to change to the 4.0 engine control module and the wiring harness is different, so the donor harness has to be run through the firewall as well as the engine and sensors, depending on your gauge cluster you may have to switch that too but Ive only heard that, never seen it needed myself. There are a lot of very very good write ups that get more in depth that I just did, its worth the reading.
There are good ways to get more from your 2.5, electric fan is the best and most effective, if your running large tires, re-gearing is the best.
I can tell you I run a 2.5, 33"x12.5s and 4.10s and I can spin all 4 tires on rock, and all Ive done is electric fan and CAI (most will say they dont help, they maybe right).
Good luck in deciding, just read all you can, the more you know, the less surprised you will be when it isnt 'easy'.