People keep saying vinegar for fruit flies but in my experience booze attracts them more. I discovered (by accident) that they seem to love tequila so a wee bit of that in a jar will get plenty.
Plus, you have the added bonus of it not stinking like leaving out a jar of vinegar/wine would.