After a seven-month contract dispute, the New York Jets agreed to trade All-Pro safety Jamal Adams to the Seattle Seahawks for a package that includes first-round draft picks in each of the next two years.

The Seahawks will send safety Bradley McDougald, first-round picks in 2021 and 2022 and a third-round pick in 2021 to New York in exchange for Adams and the Jets’ fourth-round pick in 2022. The deal is pending physicals.

Saturday’s move came one month after Adams formally requested a trade. For months, the Jets had no intention of trading him, sources said, but general manager Joe Douglas did an about-face.

“While we had maintained our interest in Jamal Adams having a long successful career with the Jets, we know it’s important to be prepared and willing to adjust to new offers and circumstances,” Douglas said in part in a statement. “As I have always said, my job is to listen to calls and this offer was one we could not ignore.”

Adams, 24, made it clear he wanted no part of the Jets, using social media to criticize the team and to say goodbye to teammates. In recent days, he attacked coach Adam Gase in a newspaper interview and owner Woody Johnson on Twitter. Team officials were infuriated by his behavior, sources said, creating acrimony between the two sides.

The Jets and Seahawks already were far along in trade talks by the time Adams’ criticism of Gase was published on Friday, a source said.

The trade was held up briefly Friday as the Seahawks waited for clarity on future salary caps, a source said. There was uncertainty because of the coronavirus pandemic, but the league and NFL Players Association reached an agreement.