The decision reverses a jury verdict from last year.

That decision came five years after Gray and two co-authors first sued.

Judge Snyder evidently agreed with Lepera.

Katy Perry performs during the ICC Women’s T20 Cricket World Cup Final between India and Australia at the Melbourne Cricket Ground on March 08, 2020 in Melbourne, Australia.

Katy Perry.Cameron Spencer/Getty Images

Gray, however, will still be able to appeal the ruling to the Ninth Circuit.

ReadJudge Snyder’s full opinion here.