A military power during the 17th century , Sweden has not participated in any war for almost two centuries .