A local court has sentenced a juvenile to 20 years in prison in connection with gang-rape of a minor girl.