As far as I can tell, the rules are quite clear - see PHB pp. 193-4, particularly this part: "If there's ever any question whether something you're doing counts as an attack, the rule is simple: if you're making an attack roll, you're making an attack."