Former Purdue guard Dakota Mathias will get another shot to make an NBA roster.

The Dallas Mavericks announced Friday they have signed Mathias to a contract ahead of training camp, which begins September. Terms of the deal were not disclosed.

Mathias, a 2018 Purdue grad, played in the NBA Summer League with the Los Angeles Lakers. The 6-4, 200-pound shooting guard started two of his five games and averaged 5.6 points and 2.8 rebounds.

Mathias signed with the Cleveland Cavaliers after going undrafted and played with them in the 2018 Summer League before signing with Divina Seguros Joventut of Spain's Liga ACB.

Mathias' lone season with Joventut was shortened by an ankle injury. He played 12 games, averaging 8.5 points, 2.4 rebounds and 0.8 assists while shooting 37.3 percent from 3-point range.

NBA teams are allowed to carry 20-man rosters in training camp, trimming them to 15 on NBA contracts and two on two-way contracts by the start of the regular season.

Mathias was a two-time Big Ten All-Defensive Team selection and Purdue's career leader in 3-pointers made. He joins E'Twaun Moore (New Orleans Hornets), Caleb Swanigan (Sacramento Kings), Vincent Edwards (Houston Rockets) and Carsen Edwards (Boston Celtics) as former Boilermakers currently under contract with NBA teams.

Contact Journal & Courier Purdue men's basketball insider Nathan Baird at nbaird@jconline.com or 765-420-5234. Follow on Twitter: @nbairdjc