When did the gospel song Amazing Grace come out?

The hymn, Amazing Grace, was written by John Newton, and English clergyman and poet. It was published in 1779.