After almost a decade, the legal fight between pop singer Kesha and producer Dr. Luke is headed to trial in New York next summer, a judge said Friday.

Manhattan Judge Jennifer Schecter said jury selection could start in either late June or early July, asking the two sides to choose and let her know. She broached the dates at the end of a hearing that worked through some of the legal issues and arguments that need to be resolved before the trial can start.

The "TiK ToK" singer and the Grammy-nominated hitmaker sued each other in 2014.

She alleged that he drugged and raped her in 2005 and emotionally abused her for years. He accused her of defaming him, saying she fabricated her claims to try to get out of her record contract.

Kesha

Kesha accused Dr. Luke of drugging and raping her in 2005 and then emotionally abusing her for years. (Photo by Axelle/Bauer-Griffin/FilmMagic)

WHY KESHA LOST IN COURT TO DR. LUKE, AND WHAT'S NEXT

A court later dismissed Kesha’s sexual abuse claims because of time limits and other legal issues, without ruling on whether the allegations had merit.

Kesha, born Kesha Rose Sebert, gained fame with "TiK ToK" in 2009. Her performance of "Praying" became an emotional highlight of the Grammy Awards in 2018, at the height of the #MeToo movement against sexual misconduct.

CLICK HERE TO SIGN UP FOR OUR ENTERTAINMENT NEWSLETTER

Kesha performing

Kesha's performance of "Praying" at the 2018 Grammy Awards was a major highlight. (Photo by Christopher Polk/Getty Images for NARAS)

Dr. Luke, born Lukasz Gottwald, has worked with singers including Katy Perry, Miley Cyrus, Kelly Clarkson and Nicki Minaj.

His career took a hit after Kesha publicly aired her allegations and got support from several other female stars. But he resurfaced in 2020 under the name Tyson Trax, producing and co-writing "Say So," Doja Cat’s Billboard Hot 100 No. 1 hit.

CLICK HERE TO GET THE FOX NEWS APP

Katy Perry and Dr. Luke

Dr. Luke has also worked with Katy Perry, Miley Cyrus and Kelly Clarkson. (Photo by Lester Cohen/WireImage)

The Associated Press does not generally name people who report being sexually assaulted unless they come forward publicly, as Kesha has done.