The Padres on Friday signed veteran infielder Clint Barmes to a one-year contract with a club option for 2016.

Barmes, 35, will make $1.3 million next season. The option is worth $2 million, against a $200,000 buyout, and can escalate based on number of plate appearances in 2015.

Last season with the Pirates, Barmes hit .245 with a .328 on-base percentage. In 102 at-bats, he had five doubles and seven RBIs. A left groin strain put him on the disabled list from June 30 to Aug. 25.

The addition of Barmes comes almost immediately after the Padres declined to tender a contract to shortstop Everth Cabrera. Padres General Manager A.J. Preller said the decision to cut Cabrera, a 2013 All-Star who has encountered trouble on and off the field, was made easier by Alexi Amarista's performance over the final six weeks of last season.

Amarista finished the year hitting .239 with a .286 OBP, but the 25-year-old impressed in the field, as he had seven defensive runs saved (DRS) at shortstop.

Should Amarista win the starting job next spring, Barmes presumably would serve as his backup. Though similarly limited on offense, the 6-foot-1, 200-pounder has long been regarded as a strong defender; in 192 1/3 innings at shortstop last season, he was worth three DRS. Barmes, who has 730 career appearances at short, also comes with experience at second base (320 appearances). He has made 17 appearances at third and three at first.

A native of Vincennes, Ind., the right-handed hitter was drafted out of Indiana State in the 10th round in 2000 by Colorado. Over parts of 12 seasons with the Rockies (2003-10), the Astros (2011) and the Pirates (2012-14), Barmes has a .246 average and .295 OBP with 86 home runs and 399 RBIs.

With Barmes' signing, the Padres now have a full 40-man roster and about $42 million committed to eight players for 2015. Their eight-arbitration eligible players, if they retain them all, could cost roughly $27 million.