The NBA will have labor peace for years to come.

The league and its players came to an agreement early Saturday on a new seven-year collective bargaining agreement, the NBA announced. It is still pending ratification, though that process is almost certainly no more than a formality.

The deal will begin this summer and will last at least through the 2028-29 season. Either side can opt out then; otherwise, it will last through 2029-30.

Among the details, per a person familiar with the negotiations who spoke to The Associated Press: the in-season tournament that Commissioner Adam Silver has wanted for years will become reality, and players will have to appear in at least 65 games in order to be eligible for the top individual awards such as Most Valuable Player. The person spoke on condition of anonymity because neither the league nor the National Basketball Players Association released specifics publicly.

Another new part of the CBA will be a second luxury tax level that, when reached, will keep teams from using their mid-level exception to sign players. That was a clear compromise, given how some teams wanted the so-called “upper spending limit” that would have essentially installed an absolute ceiling on what can be spent each season and help balance the playing field between the teams that are willing to pay enormous tax bills and those who aren’t.

Not in the CBA is a change to the policy that would allow high school players to enter the NBA draft. It was discussed and has been an agenda item for months, but it won’t be changing anytime soon — probably not for at least the term of the next CBA.

heat 129, mavericks 122 >> Jimmy Butler had 35 points and 12 assists, Cody Zeller added 20 points and host Miami held off Dallas to snap a three-game losing streak. Max Strus and Kevin Love each scored 18 and Tyler Herro added 15 for the Heat. Luka Doncic was brilliant again for the Mavericks, finishing with 42 points, 10 rebounds and eight assists. Tim Hardaway Jr. had 31 points and Kyrie Irving added 23 points and eight assists for Dallas (37-41), which is one game out of the final play-in spot in the Western Conference with four games left. Miami (41-37) is seventh in the Eastern Conference, in play-in position.