Darn ... can't c&p from photos ...Points of interest from Bill D's photo of Songs of Scotland (G.F.Graham c.1850) pages for those who don't wish to load 300kb of graphics:
Written by Robert Tanahill of Paisley, b.1774June03, d.1810May17.
Reference cited to similar airs in S.Fraser's 1816 Collection and R.A.Smith's (no date).
The origin of the words seems soundly in early 19th century Scotland, although possibly late in the 18th. The melody might be significantly older. Claiming copyright to more than arrangement certainly would seem inappropriate for anyone born within the last century.
Interesting links ... thank you!
~S~ps: "Rambling Jack" did a decent show here last week.