You will need to do both the front and rear gears, or else you will not be able to use your 4wd without destroying the transfer case. If you only do the rear, then your rear tires will be spinning alot faster than the front which is a recipe for disaster.
Now for the bad part...Because you have a 2012, this is going to be a $2000-$3000 swap. You are going to need a new front axle and diff from an 09-11 because the ring gear on your current axle is welded to the carrier. Once you get the correct axle, then you will need the gears and an install kit. Then on the rear you have 2 options...run the factory RT 4.10 gears which bolt up fine, but are $370, or run the cheaper aftermarket Motive gears that are $195, but machine your carrier to accept these gears. In the end, the price is about the same either way on the rear.
Front axle - $500-$1000
Front Gears - $195
Front Install Kit - $209
Rear Factory 4.10's - $370
Rear Install Kit - $95
Labor for all - $600-$1000
As you can see, Dodge made it very difficult for the 2012 owners.