this was a large set of buildings developed over centuries , whose last occupant had indeed been mithras , the god the roman army had adopted , but which contained more ancient chapels , once consecrated to minerva , venus and mercury .