Kesha defamed Dr. Luke in texts to Lady Gaga, judge rules

A week after Kesha released her latest album, a judge ruled Thursday that the singer defamed her former music producer, Dr. Luke, in 2016 text messages she sent to Lady Gaga. It's a major setback for Kesha in a legal battle that has been going on for years.

In 2014, claimed Katy Perry had been "raped by the same man," referring to Gottwald. However, Perry testified that that was not the case.

"There is no evidence whatsoever that Gottwald raped Katy Perry or that Katy Perry, whose sworn testimony is unrefuted, must not be believed," Judge Jennifer Schecter said in the ruling.

Schecter ruled Thursday that the text message was defamatory. She disputed Kesha's claim that Gottwald is a public figure, saying he was unknown before the case began — meaning that his attorneys will not need to prove the singer acted with "actual malice" when making her claim.

"Gottwald certainly is not a 'general public figure,'" the ruling reads. "Although he may be well known in music-industry circles, he has ever been a household name or achieved general pervasive fame and notoriety in the community."

"The only reason Gottwald has any published connection to the issues raised in this lawsuit is because they were raised in this lawsuit," Schecter said.

In the ruling, Schecter also ordered Kesha to pay $373,671.88 to her former producer in interest for late royalties. The court dismissed Kesha's claim that her contract with Gottwald's record label was unconscionable and fraudulent.

"We disagree with the Court's rulings. We plan to immediately appeal," Kesha's legal team said in a statement to BBC News.

Thursday's ruling only resolved part of the case. The judge emphasized that she was not ruling on whether or not Gottwald raped Kesha — that decision will be left to a jury.

"Kesha abandoned her meritless case against Dr. Luke more than three years ago," Christine Lepera, Gottwald's attorney, said in a statement to CBS News.

"The only remaining lawsuit is Dr. Luke's case against Kesha for defamation and breach of contract. Dr. Luke is pursuing this lawsuit to seek recovery for the serious harm Kesha's false accusations of rape have caused Dr. Luke, his family and his business."

"Dr. Luke looks forward to the trial of his case where he will prove that Kesha's other false statements about him were equally false and defamatory," she concluded.

Businessman who surprised students with free tuition says don't call it a "gift"

Georgia officer saves baby who couldn't breathe

Judge hands down harshest sentence in college admissions scandal