Something to keep in mind:
Emissions legality is based on the year of manufacture and equipment required in the VEHICLE - NOT the driveline.
In other words, when you put a 2002 driveline in a 1968 Nova this is fine because you are exceeding the required equipment for the 1968 vehicle. On the other hand putting the 1968 driveline into the 2002 would get you in all kinds of trouble - local, state, and of course Federal.
So in the example above, the 2002 Silverado driveline into the 2012 Sprinter would be a complete No-No.
Also, in many states, converting a vehicle from one fuel type to another has been made illegal - for instance here in PA all those gas engines put into diesel GM cars back in the day are now uninspectable. Fortunately most of them are long gone . . .
So while the physicality of a swap might be one thing, the reality of what's legal is another. Before you get out the torches and welding equipment you should be VERY sure what the DMV in your state requires. And by VERY sure I mean ask the necessary people at the actual DMV - not your buddy at the garage down the street.
As a first step I would assume that diesel requires diesel, and gas requires gas. Why - because the evaporative emission controls are COMPLETELY different. Everything from fill necks to gas tanks to vapor lines . . .
And second, I would restrict my benchracing to putting later model engines/drivelines into earlier model trucks. Otherwise you will be required to update the driveline you install to meet the more stringent requirements of the truck you put it into. Can you say "Never gonna happen"?
For those reasons alone it is highly unlikely there would be any financial benefit to doing such a swap.
Gregg