Skip to content

Commit

Permalink
Fix RSS native build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Dec 11, 2024
1 parent 183a55c commit b4848ca
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
import java.util.Map;
import java.util.Properties;

import com.apptasticsoftware.rssreader.AbstractRssReader;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;

class RssProcessor {

Expand Down Expand Up @@ -80,4 +82,9 @@ void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveCla
};
reflectiveClass.produce(ReflectiveClassBuildItem.builder(clonableClasses).methods().build());
}

@BuildStep
RuntimeInitializedClassBuildItem runtimeInitializedClasses() {
return new RuntimeInitializedClassBuildItem(AbstractRssReader.class.getName());
}
}

0 comments on commit b4848ca

Please sign in to comment.