Blake Lively and Justin Baldoni's year-and-a-half long legal battle has come to an end weeks before they were scheduled to go to trial in New York City.

The "It Ends with Us" stars agreed to settle Lively's breach of contract and retaliation lawsuit May 4, a spokesperson for defendant Wayfarer Studios, cofounded by Baldoni, confirmed to USA TODAY. Details of the settlement were unspecified.

"The end product – the movie 'It Ends With Us' – is a source of pride to all of us who worked to bring it to life. Raising awareness, and making a meaningful impact in the lives of domestic violence survivors – and all survivors – is a goal that we stand behind," a joint statement by both parties' attorneys read.

"We acknowledge the process presented challenges and recognize concerns raised by Ms. Lively deserved to be heard," Bryan Freedman, Ellyn Garofalo, Michael Gottlieb and Esra Hudson said. "We remain firmly committed to workplaces free of improprieties and unproductive environments. It is our sincere hope that this brings closure and allows all involved to move forward constructively and in peace, including a respectful environment online."

The contentious case between Lively, 38, her director and costar Baldoni, 42, and his codefendants involved competing accounts of how their relationships broke down on the set of the 2024 Colleen Hoover book adaptation as well as allegations of intentional reputation damage and sexual harassment.