A Johnson County judge has sentenced a man to seven years in prison for distributing drugs that caused a woman’s death.