Preheat your oven to 350 degrees Fahrenheit and prepare a square cake pan (8-inch square or 9-inch square) by greasing it with butter or baking spray and lining it with parchment paper. Set it aside.
Add the flour, sugars, baking powder, baking soda, salt, cinnamon, nutmeg and cloves to a large mixing bowl and whisk together until combined.
Add the shredded carrots to the dry ingredients and mix together.
Measure the buttermilk and oil into a liquid measuring cup and then add the eggs. Whisk them together well with a fork until combined.
Add the buttermilk mixture to the dry ingredients and mix together by hand with a silicone spatula just until the mixture is smooth and no lumps remain.
Pour the batter into the prepared baking pan and bake for about 35-38 minutes at 350 degrees Fahrenheit. To see if the cake is done, insert a toothpick into the centre. If it comes out clean, the cake is done.
Place the cake pan on a wire rack to cool completely.