I would expect a 2012 engine to interchange with an '11 or '13. They all used the LLT engine.
2017's have the LGX engine. I would not a previous year's engine to be plug and play.
2017's have the LGX engine. I would not a previous year's engine to be plug and play.