Ke$ha has struck a deal ending a legal battle with producer David Sonenberg before the release of her album “Warrior,” The Post’s Dareh Gregorian reports. Sonenberg’s $14million suit said he discovered Ke$ha, but she was persuaded to give him the boot by songwriter Lukasz Gottwald, a k a Dr. Luke. Sonenberg also sought $12million from Luke. Ke$ha sued Sonenberg, claiming he’d been an illegal talent agent. Terms were not disclosed. A rep said the resolutions “were agreeable to all concerned.”