Ó Suilleabháin dates the song as mid 1700s "The author of the conceit was a Munster poet of the mid-eighteenth century named Seán Ó Seanacháin (John Shanahan), whose eccentric character and general irresponsibility earned for him the sobriquet of "Seán Aerach" or "Flighty Jack". According to the account given by O'Curry to Petrie, he was a native of Tulla, County Clare, who settled down in the neighbourhood of Glin, on the estuary of the Shannon in County Limerick." (quoted by DK in a previous message)
yes, I suppose a bottle may be a better image than a glass.