The jury just did it.

Disgraced lawyer Michael Avenatti was convicted in Manhattan court on all counts Friday for attempting to shake down Nike for as much as $25 million over claims it illegally funneled payments to college basketball players.

He now faces up to more than 40 years behind bars when sentenced June 17.

Avenatti half-smiled and flexed his hands behind his back as he stared straight ahead when he heard the verdict in federal court.

The onetime hotshot lawyer — who gained fame representing porn star Stormy Daniels in failed lawsuits against President Trump — was found guilty of attempted extortion, honest-services fraud and the related use of “interstate communications.”

Avenatti is still awaiting an April 21 trial in the same courthouse for allegedly stealing nearly $300,000 from Daniels tied to the 2018 publication of her best-selling memoir, “Full Disclosure.”

Avenatti, 48, also faces a third federal trial in California, where he’s accused of ripping off five other clients — one of whom’s a paraplegic — as well as scamming bank loans, evading taxes and lying during bankruptcy proceedings.

Prosecutors have said his alleged one-man crime wave was prompted by lavish spending on luxuries — including a $12 million oceanfront home in Laguna Beach, Calif., a $5 million private jet, a Porsche and a Ferrari — that left him at least $11 million in debt.

Evidence in the Nike case included an audio recording of Avenatti profanely threatening to “take $10 billion off [the company’s] market cap” if he wasn’t paid at least $15 million to conduct an internal probe of the sportswear giant.

“I’m not f–king around with this. … A few million dollars doesn’t move the needle for me,” he said during one of three phone calls with a Nike lawyer in March 2019.

The loudmouth lawyer — who used his celebrity as a cable TV news guest to explore a presidential campaign in 2018 — repeatedly predicted that he would be “fully exonerated” of all the allegations against him and even pleaded “100 percent not guilty!” during his arraignment in the Nike case.

But Avenatti declined to testify in his own defense after Judge Paul Gardephe ruled that he could be cross-examined about his “desperate financial condition” and accusations of “lies and deceit” unrelated to the criminal charges against him.

Avenatti had been free on $300,000 bond until last month, when a California judge ordered him locked up over allegations he received $1 million in legal fees after his March 2019 arrest but hid the income from his second ex-wife, tax authorities and other creditors.

Avenatti was attending a hearing to suspend his California law license when he was busted for allegedly violating terms of his release.

Defense lawyer Howard Srebnick argued that Avenatti “acted in good faith” on behalf of a client during his interactions with Nike.