use of io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem in project djl-demo by deepjavalibrary.
the class DjlPredictorProcessor method runtimeInit.
@BuildStep
void runtimeInit(BuildProducer<RuntimeInitializedClassBuildItem> runtimeClasses, BuildProducer<RuntimeInitializedPackageBuildItem> runtimePackages) {
runtimeClasses.produce(new RuntimeInitializedClassBuildItem("io.netty.internal.tcnative.SSL"));
runtimePackages.produce(new RuntimeInitializedPackageBuildItem("ai.djl"));
runtimePackages.produce(new RuntimeInitializedPackageBuildItem("org.bytedeco"));
runtimePackages.produce(new RuntimeInitializedPackageBuildItem("org.tensorflow"));
runtimePackages.produce(new RuntimeInitializedPackageBuildItem("com.google.protobuf"));
}
Aggregations