SEOUL—South Korea, one of the world’s largest producers of nuclear electricity, is shifting away from the industry. President Moon Jae-in said Monday the country would scrap plans to build additional nuclear-power plants and wouldn’t seek to extend the life of existing ones. Mr. Moon made the comments in a speech at a ceremony marking the…