Mahmood and Dart were both given extended sentences and will serve two-thirds of their prison terms rather than half, and will spend five years on licence.
Dart refused to stand when he was sentenced, saying: "I don't wish to stand up, I believe ruling and judging is only for Allah."
The judge said that they were all "committed fundamentalists" who would have been prepared to kill.
He told Dart and Mahmood:
I'm satisfied to the required criminal standard that neither of you had ruled out an attack in the United Kingdom, and that you, Mahmood, were looking at arming yourself with a bomb.
More top news
After a mild and quiet night, the best of the sunshine will be across the south east.
The presumptive Democratic Presidential candidate said Kaine is everything Donald Trump is not as they shared a platform for the first time.
Team Sky's Chris Froome is set to win the 2016 Tour de France with an overall lead of four minutes 11 seconds after stage 20 to Morzine