It's millennia older than that dating back to philosophical discussions of a 'just war' in Greece and Rome. The Catholic Church's concept of a 'just war' dates back to early church teachings and was the first AFAIK to apply it to more than one country.