A drugs gang who recruited children to sell crack and heroin have been jailed for 30 years.