A Swedish court has handed life sentences to two men and prison sentences to six others in a high-profile gang-related shooting that left two dead and eight wounded in the city of Goteborg last year.

The Goteborg District Court said Monday the two key suspects were found guilty of murder for opening fire with automatic weapons in a crowded Goteborg restaurant in March, 2015 as people were watching a Champions League soccer match.

The court said six other defendants were charged with murder, attempted murder, planning and assisting the crime, and were given prison sentences between 7 and 14 years. Disputes between criminal gangs are believed to have motivated the shooting.

All eight men have denied the charges but it wasn't immediately clear whether they would appeal the verdict.