SAN ANTONIO — A 17-year-old man has been given an automatic sentence of life in prison after a jury found him guilty of capital murder in the killing of an acquaintance in a drug-related robbery in 2015 in Central Texas.

The San Antonio Express-News ( ) reports that Joshua Joyner of Converse was found guilty Monday. Since the state didn’t seek the death penalty, the charge carried an automatic sentence of life in prison. Because of his age, he’ll be eligible for parole after 40 years.

Joyner had been certified to stand trial as an adult. Joyner was 15 on July 24, 2015, the day 19-year-old Albert Nelson III was shot in the parking lot of a Bexar County elementary school.

Prosecutors said Joyner plotted to rob Nelson of a $75 bag of marijuana.

Information from: San Antonio Express-News,