Los Angeles, Sept. 12 -- Singer Taylor Swift has finally agreed to provide evidence in close friend Blake Lively's ongoing legal battle against Justin Baldoni.

According to Page Six, Swift will be deposed only if Lively's legal team can convince a judge to extend the deadline for the testimony.

The singer is likely to be asked about any discussions with the actor about the conditions on the sets of 'It Ends With Us'. Prior to this, Baldoni's team obtained the court's permission to access the messages between Lively and Swift.

The 'Jane the Virgin' alum's lawyer had denied Judge Lewis J Liman about requesting "a blanket thirty-day extension of the discovery cut-off date," further claiming, "Wayfarer Parties requested an agreement solely...