The pop star Kesha, who since 2014 has been embroiled in a nasty legal battle with her former producer and current label head, Dr. Luke, has issued her first new song in nearly five years.

Among those who collaborate with Kesha for “Rainbow” are Dolly Parton, who duets with her on the 1980 Pepe Sebert song “Old Flames Can’t Hold a Candle to You.” Sebert, who, not coincidentally, is Kesha’s mom, also helped write the Ben Folds-produced title track.

Kesha drafted members of Palm Desert rock band Eagles of Death Metal for a few songs, as well.

Dr. Luke, who helped propel Kesha to stardom through his co-production on songs including “Tik Tok,” “Your Love Is My Drug” and “Die Young,” is notably absent from the credits.

In October 2014, Kesha sued Gottwald in Los Angeles County Superior Court, alleging that he “Sexually, physically, verbally and emotionally” abused her starting when she was 18.

In 2016, Kesha dropped her suit, stating in an Instagram post, “I need to get my music out. I have so much to say. This lawsuit is so heavy on my once free spirit, and I can only pray to one day feel that happiness again.”