To make this recipe gluten free, replace the all-purpose flour with a high-quality 1:1 gluten-free baking flour blend that contains xanthan gum, or add xanthan gum if your blend does not include it. Also confirm that the baking powder, molasses, dried fruit, spices, and any packaged ingredients are certified gluten free or free from cross-contact concerns. Because gluten-free fruit cakes can be slightly more delicate, grease the loaf pan thoroughly and allow the cake to cool completely before wrapping and slicing. If preparing in a shared kitchen, use clean cookware, utensils, and work surfaces to help avoid gluten contamination.