Actress and producer Blake Lively and Justin Baldoni, her "It Ends with Us" director and co-star, have settled their lawsuit two weeks ahead of trial.

Blake Lively and Justin Baldoni's legal battle has come to an end with a settlement in Lively's breach of contract and retaliation lawsuit.

The settlement comes just ahead of a trial slated to begin in May, where both stars were expected to testify.