Search in sources :

Example 1 with RuntimeInitializedPackageBuildItem

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"));
}
Also used : RuntimeInitializedClassBuildItem(io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem) RuntimeInitializedPackageBuildItem(io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

BuildStep (io.quarkus.deployment.annotations.BuildStep)1 RuntimeInitializedClassBuildItem (io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem)1 RuntimeInitializedPackageBuildItem (io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem)1