Chutneys are handy pantry staples, and they make zesty accompaniments to simple meats like pork tenderloin or roast chicken. Here we've combined tart and sweet apples with ginger, spices, and golden raisins for a delicious chutney that can stand in for a more time-consuming or fattening sauce with no sacrifice of flavor. Cranberries also work well in this mixture, instead of (or even in addition to) the raisins.
Place all of the ingredients in a large saucepan and bring to a simmer over medium heat. Adjust the heat so that the mixture simmers gently, and cook, stirring frequently, until the apples are tender and the juices have reduced and thickened, about 30 minutes. Discard the cloves, star anise, allspice, and bay leaf. Divide among sterilized glass canning jars and process in a water bath, if desired; otherwise, the chutney will keep in the refrigerator, covered, for up to 2 weeks.