They tried though in the first half of the grandline on multiple occasion, but he either was spared or helped escape.
I agree that Oda should have shown some more eagerness on capturing Luffy especially on the Gorosei side of things, but we can't say they haven't tried. He escaped practically from all their elite men in pre-time skip (Smoker, CP9, Shichibukais, Magellan, Aokiji, Kizaru, Akainu, the whole marines in marine ford, etc) and some of them even had multiple opportunities to capture him.
NONE of those you mentioned went after Luffy because of his Devil Fruit, that's the problem
Smoker just caught him randomly fucking around in Logue Town and got obssessed with him because he kept escaping
CP9 wanted Pluto Blueprints and Robin, if Luffy didin't interfere, they wouldn't even had a fight
Warlords were all chilling, Luffy went after them
Magellan was just chilling in Impel Down, just protected it
Aokiji was following Robin around, didn't care about Luffy, he could've killed Luffy in fact but chose not to
Kizaru and Akainu both showed no motivation to go after Luffy seriously during Marineford, they always gave the focus to the Whitebeard Pirates
NONE OF THEM SHOWED ANY FEAR / MOTIVATION TORWARDS LUFFYS DEVIL FRUIT
It's dumb
It's not well written
If this was suposed to be big a reveal
There's no way this shows "amazing planning from the writer"