At the same sentencing hearing, a co-conspirator, who received six years in prison, shook his fist in the air and shouted "God is Great."
Muhammad Nur Solihin, the ring leader, and Agus Supriyadi were arrested along with two other militants including Solihin's wife in December, just one day before their planned attack on the popular family attraction at the presidential palace.
The would-be suicide bomber, Solihin's wife Dian Yulia Novi, was sentenced last month to 7 1/2 years in prison. Another woman, Tutin, received 3 1/2 years for encouraging Novi to become a suicide bomber.
The apparently unrepentant militants are indicative of the challenge facing Indonesian authorities who have imprisoned hundreds of Islamic radicals in the past decade for plots and attacks.
More From This Section
After serving their sentences, many emerge from the country's overcrowded prisons with an even greater commitment to violent radicalism and new links to other militants.
In a television interview after December arrests, Solihin said that he married Novi as his second wife to facilitate her desire to become a suicide bomber.
Presiding Judge Syafrudin Ainor Rafiek said the 37-year- old Supriyadi helped transport Solihin and the bomb for the attack from Central Java to Novi's residence in Bekasi, a Jakarta satellite city.
Police have described the group as part of Jemaah Anshorut Daulah, a network of almost two dozen Indonesian extremist groups that formed in 2015 and pledges allegiance to Islamic State group leader Abu Bakr al-Baghdadi.