AN INDONESIAN court sentenced an Islamic militant who eluded capture for 16 years to life in prison after finding him guilty of making bombs used in a 2005 market attack that killed 22 people.