Music Producer Dr. Luke Slams Kesha's Claim of Sexual Abuse

"I didn’t rape Kesha and I have never had sex with her," he wrote on Twitter.

— -- Dr. Luke has slammed Kesha's accusations of sexual abuse.

The music producer took to Twitter today to clear his name and ask that he not be tried in the court of public opinion.

He also wrote that while he understands why Kesha's fans are speaking out in support of her, they don't have his side of the story.

"I didn't rape Kesha and I have never had sex with her. Kesha and I were friends for many years and she was like my little sister," he tweeted. "Kesha and I made a lot of songs together and it was often good but there were creative differences at times. It's sad that she would turn a contract negotiation into something so horrendous and untrue."

He also tweeted, "Kesha has denied under oath the horrible allegations now being made against me."

New York Supreme Court Justice Shirley Kornreich ruled that Kesha must stick to her agreement to record six more records under Dr. Luke's label, Kemosabe Records -- a subsidiary of Sony -- after hearing the producer's claim that he has invested $60 million into her career and would allow her to record without his input.

"You're asking the court to decimate a contract that was heavily negotiated and typical for the industry. My instinct is to do the commercially reasonable thing," the judge told Kesha's attorney Mark Geragos. "She's being given the opportunity to record, she can record. She does not have to have any interface at all with Mr. Gottwald in recording or producing."

Dr. Luke, whose real name is Lukasz Gottwald, has denied Kesha's allegations in the past. In 2014, he filed a counter-lawsuit against Kesha, her mother and her manager. In that counter-lawsuit, Gottwald claimed that Kesha acted with "wanton dishonesty" in an effort to get out of her contract. The claims against Kesha's mother and her manager was dismissed earlier this year. But Kornreich has not ruled on a motion to dismiss Kesha's lawsuit or a motion to dismiss Gottwald's counter-suit.

A rep for Kesha did not immediately respond to a request from ABC News for comment. Sony has declined to comment on ongoing litigation.