Christopher Rogers was caught with the drug at 22 Ashfield, Letterkenny on February 11th, 2011.
However Rogers claimed he was merely supplying the drug to friends and was not making any profit on it.
Gardai told Letterkenny District Court that Rogers had access to people with the drugs which his friends did not have.
The defendant’s solicitor told the court that his client had ben an ordinary young man until he developed a muscular complaint which prevented his from taking part in sport.
He the turned to using cannabis and mixing with the wrong crowd.
Gardai told the court that they believed Rogers would not come before them again and that he had learned a hard lesson
They added that they believed it was a ‘one time occurrence.’
However Judge Paul Kelly said he would be first interested in hearing a probation report on Mr Rogers
The court heard that Rogers was working in the UK but that he would return for trial on October 15th.