Sources: Mike Miller joining LeBron James with Cavaliers

Adrian Wojnarowski
Miami Heat v San Antonio Spurs - Game 5
SAN ANTONIO, TX - JUNE 16: LeBron James #6 of the Miami Heat reacts alongside Mike Miller #13 in the fourth quarter while taking on the San Antonio Spurs during Game Five of the 2013 NBA Finals at the AT&T Center on June 16, 2013 in San Antonio, Texas. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Kevin C. Cox/Getty Images)

Mike Miller has reached agreement on a two-year, $5.5 million deal with the Cleveland Cavaliers, league sources told Yahoo Sports.

The lure of playing with LeBron James made it possible for the Cavaliers to sign Miller.

The second year of the contract will be a player option for Miller, sources said.

Miller averaged 7.1 points and 2.5 rebounds, and shot 45.9 percent from 3-point range last season with the Memphis Grizzlies. It was the first time he played all 82 games in a season since his rookie year (2000-01) with the Orlando Magic.

Before his one-year run in Memphis, he spent three seasons with LeBron James in Miami, where he helped the Heat win two championships as a key reserve.

Miller had several choices in the free-agent market, including the Denver Nuggets and Dallas Mavericks, sources told Yahoo Sports. The Grizzlies turned to Vince Carter once Miller showed interest in joining the Cavaliers.

In 15 NBA seasons, Miller has averaged 11.8 points and 4.6 rebounds per game. first reported Miller's agreement with Cleveland.