To prepare this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free flour blend that includes xanthan gum for structure. Ensure that the baking powder and any other packaged ingredients, like the raisins or pineapple, are certified gluten-free. The texture may vary slightly, but the result remains soft and flavorful.