An Islamic extremist who recruited Britain's youngest terrorist over the internet has been jailed for 12 years.