Germany has taken the controversial step of vowing to phase out nuclear power by 2022 in favor of other sources. It is the only country in the G-20 economic bloc to project a decline in clean energy investment, partly because of being an early leader in renewable energy as well as competition from Asian producers.