The Los Angeles Dodgers have agreed to a four-year, $48 million deal with Brandon McCarthy, according to sources.

McCarthy, 31, split the 2014 season between the New York Yankees and Arizona Diamondbacks.

The Boston Red Sox, Yankees and Pittsburgh Pirates all pursued McCarthy before he settled on the Dodgers.