The Washington Nationals have avoided a grievance hearing with Bryce Harper over the outfielder's salary for next season.

The two sides reached a settlement on Sunday night, according to a source.

Harper and the Nationals had been at odds over how his salary would be determined because of a rare dispute over the contract he signed as a first-round draft pick in 2010. Without a settlement, a contentious hearing would have been held on Tuesday.

Scott Boras believed Harper had the right to opt out of his prescribed 2015 salary ($1.5 million) and into baseball's arbitration system.

Ken Rosenthal of FOX Sports was the first to report that the two sides agreed to two-year deal that avoided the grievance.