The Detroit Tigers have agreed to a two-year, $18.5 million deal with J.D. Martinez, according to a source.

The contract will pay Martinez $6.75 million in 2016 and $11.75 million in 2017. The two sides were scheduled for an arbitration hearing later this month.

When the two sides exchanged salary figures the past month, they found themselves with a significant gap to bridge.