Heat the oven to 350°F (175°C). Line an 8-inch square metal baking pan with parchment.
Melt the butter and chocolate together, stirring until smooth. Let the mixture cool until just warm.
Whisk in both sugars and the molasses. Whisk in the eggs one at a time, then add the vanilla.
Whisk the flour, cocoa, ginger, cinnamon, cloves, and salt separately. Fold into the chocolate mixture just until no dry streaks remain.
Spread in the pan and bake for 23–28 minutes, until the edges are set and a toothpick in the center comes out with moist crumbs. Cool completely before cutting into squares.