It took long enough.

Kristaps Porzingis, who was traded to the Mavericks on Thursday afternoon, finally tweeted out a message to New York and Knicks fans, but he first found time to send a celebratory tweet about playing with his new Mavericks teammate and friend Luka Doncic.

“New York will always have a special place in my heart,’’ he tweeted. “Grateful for everybody who made this journey so special for my family and I.’’

The Knicks moved Porzingis, their disgruntled bedrock piece, Tim Hardaway Jr., Courtney Lee and Trey Burke to Dallas for Dennis Smith Jr., two distant first-round picks and the expiring contracts of DeAndre Jordan and Wesley Matthews.