BERLIN—Germany said it had scrapped a €15.2 billion project (equivalent to $17.2 billion) to build its biggest military ship since the end of World War II in the latest sign of the country’s rapidly ...