The Boston Celtics have traded guard Avery Bradley and a 2019 second-round pick to the Detroit Pistons for forward Marcus Morris, the team announced.

The Bradley deal created the salary-cap space needed to sign free-agent forward Gordon Hayward to a four-year, $128 million maximum contract.

The Los Angeles Lakers and LA Clippers were aggressive suitors for Bradley in the past 24 hours, league sources told ESPN.

Bradley is in the final year of his contract and was unsure whether he fit long-term financially into Boston's structure. Detroit could be aggressive in pursuing a new deal with him, something that Bradley has been keenly interested in, league sources said.

Bradley is the kind of two-way guard that Pistons president and coach Stan Van Gundy has been determined to obtain.

With Bradley now joining the team, the Pistons are renouncing restricted free agent guard Kentavious Caldwell-Pope, a league source told ESPN. He will become an unrestricted free agent.