A judge has sided with industry producer and alleged rapist Dr. Luke in his defamation lawsuit against pop singer Kesha.

Back in 2014, Kesha filed a lawsuit accusing Dr. Luke of sexual assault and emotional abuse. She alleges that he drugged and raped her. Dr. Luke then turned around and sued Kesha for defamation and breach of contract. 

In court, it was revealed that Kesha shared in a text message with Lady Gaga that he had also raped Katy Perry. Perry later denied the allegation in court.

"Though Gottwald has sought publicity for his label, his music, and his artists — none of which are the subject of the defamation here — he never injected himself into the public debate about sexual assault or abuse of artists in the entertainment industry," the judge wrote, dismissing Kesha's claims that the producer is a household name. "The only reason Gottwald has any public connection to the issues raised in this lawsuit is because they were raised in this lawsuit."

The judge then ordered Kesha to pay $374,000 in interest on a royalty payments.

Her lawyers vowed to appeal the ruling.

"Judge Schecter issued rulings today on motions for summary judgment in the Dr. Luke litigation," Kesha's lawyers said in a statement per Variety. "We disagree with the Court's rulings. We plan to immediately appeal."