The Welsh Rugby Union has agreed a six-year £60 million (NZ$99.6 million) deal with its four regions, ending a dispute that threatened to tear the national game apart and force the country's best players overseas.
Cardiff Blues, Newport Gwent Dragons, Ospreys and Scarlets had been locked in conflict with the governing body over the funding and control of the sport.
The new deal will bring an annual £8.7 million to the regions to be spent on players qualified to represent Wales.
The disagreement had left Wales captain Sam Warburton in limbo after he signed a central contract before the regions, including his club Cardiff, said they would not select players on centrally-funded deals.
New selection rules mean players based outside Wales will not be eligible for the national team, although coach Warren Gatland can make exceptions. Players who are already based overseas are exempt from the regulation.
"The new contracts will help us keep more of our best players in Wales and will help stem the flow abroad of the talent we develop here through our academies and regions," WRU chief executive Roger Lewis said in a statement.
Has Wallabies coach Ewen McKenzie done the right thing by resigning?