A group of men who attacked a 19-year-old in a park and fatally stabbed him as he tried to flee have each been sentenced to life in jail.