Preheat the oven to 350F / 177C. Place cupcakes liners in a muffin pan.
In a medium bowl, mix the flour, spices, baking powder, and salt. Set aside.
In a large mixing bowl, combine the butter and sugar using a handheld mixer on medium-high speed until smooth and creamy. Scrape down the sides and bottom of the bowl with a rubber spatula, as needed.
Then add the eggs, oil, and vanilla and beat on medium-high speed until combined.
Add the molasses and whisk to combine.
With the mixer on low speed, add half of the dry ingredients, then half of the buttermilk. Once combined repeat the process with the remaining ingredients. Do not overmix.
Divide the batter evenly among the cupcake liners, filling to only two-thirds of the way.
Bake for 20-22 minutes, or until a toothpick inserted in the center comes out clean.
Allow the cupcakes to cool completely, then add frosting.