CLEVELAND -- The Cleveland Cavaliers have cleared enough salary cap space to re-sign free-agent forward LeBron James.

On Thursday morning, the Cavaliers confirmed they had facilitated a three-team trade with the Brooklyn Nets and Boston Celtics that sent point guard Jarrett Jack and shooting guard Sergey Karasev to the Nets and center Tyler Zeller to the Celtics.

As part of the deal, the Celtics also acquired shooting guard Marcus Thornton from the Nets, and a protected 2016 first-round draft pick from the Cavaliers.

Cleveland received Boston's 2015 second-round pick, which is top 55 protected. In addition, the Cavaliers received the rights to forwards Ilkan Karaman and Edin Bavcic.

Karaman, 24, was a second-round pick of the Nets in the 2012 NBA Draft, and most recently played for Fenerbahce Ulker in the Turkish Basketball League, while Bavcic, 30, a second-round pick of the Toronto Raptors in the 2006 NBA Draft, played for KAOD in Greece.

If Boston's second-round pick is not conveyed to Cleveland, the Celtics' obligation will be extinguished. The first-round pick the Cavaliers sent to Boston is top 10 protected in 2016, 2017 and 2018, but will be unprotected for the 2019 NBA Draft.

The three-team trade was first reported by ESPN's Marc Stein on Wednesday morning.

ESPN's Brian Windhorst reported that the trade gave the Cavaliers $24 million in cap space, and James' maximum salary for the upcoming season will be $20.7 million.

Windhorst later tweeted, however, that the Cavaliers had some version of that trade planned regardless of James' plans, and his sources told him the trade should not be an indication that any decision has been reached with James.