-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[oracle-jdbc] Allow the Oracle JDBC driver to load its custom NativeI…
…mageFeature
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
*/ | ||
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. | ||
|