Preheat your oven to 350°F. Grease a 9x9 inch pan and line it with parchment paper.
In a medium bowl, whisk together flour, spices, baking powder, baking soda, and salt.
In a large bowl, cream butter and sugars until fluffy. Add eggs and vanilla, mixing until smooth.
Alternate adding dry ingredients and buttermilk to the butter mixture, mixing until smooth. Fold in grated carrots.
Pour batter into the prepared pan and bake for 50-54 minutes, or until a toothpick comes out clean. Let cool completely.