An East Stroudsburg man pleaded guilty Tuesday in federal court in Scranton to heroin trafficking and gun possession charges.