The Knicks are making rookie guard Allonzo Trier a part of its future. 

New York and Trier have agreed to a two-year NBA deal using Knicks' bi-annual exception, according to The Athletic , citing unidentified sources. The Knicks is expected to release Ron Baker, who is in his third season with New York, to create space for the rookie.

READ: NBA wrap: Kyrie Irving shines as Boston Celtics beats Washington Wizards

ESPN reports the two-year deal is worth $7 million and has a team option for the second year. 

Trier went undrafted in 2018 and agreed to a two-way contract with the Knicks. He played three seasons at the University of Arizona, but tested positive for a banned substance before the NCAA tournament his junior year. 

The 22-year-old has averaged 11.3 points, including 39.1 percent shooting on three-pointers in 23 minutes a game for the Knicks.