I'm sure Steve will come along and tell you the earliest references to it. In the meantime you can find it here in The Verdant Braes Of Skreen.
And here's another version printed in Padraig Column's Anthology of Irish Verse - Johnny's The Lad I Love
Mick