Skip to content

Commit

Permalink
[oracle-jdbc] Allow the Oracle JDBC driver to load its custom NativeI…
Browse files Browse the repository at this point in the history
…mageFeature
  • Loading branch information
Sanne committed Jul 18, 2024
1 parent 19d9ed1 commit 4181c28
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.AdditionalIndexedClassesBuildItem;
import io.quarkus.deployment.builditem.NativeImageFeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;

/**
* @author Sanne Grinovero <sanne@hibernate.org>
*/
public final class OracleNativeImage {

@BuildStep
NativeImageFeatureBuildItem staticNativeImageFeature() {
return new NativeImageFeatureBuildItem("oracle.jdbc.nativeimage.NativeImageFeature");
}

/**
* Registers the {@code oracle.jdbc.driver.OracleDriver} so that it can be loaded
* by reflection, as commonly expected.
Expand Down

0 comments on commit 4181c28

Please sign in to comment.