I can't say for sure as I'm not familiar with the 2.5, but if you have the fan shroud, air intake, exhaust, and all the other peripherals for your Wrangler, then it shouldn't be a big issue. You're basically swapping out the long blocks, and the computer shouldn't know what engine is in there. Theoretically, it should work just fine.
If it's worth doing, then it's worth over
The Republic of Dave: Bringing you the finest in simian testing supplies.
The build, the gear, and the mileage: The Wasteland Survival Guide