Skip to content

Commit

Permalink
[oracle-jdbc] Avoid triggering linkage to Jndi: not harmful but point…
Browse files Browse the repository at this point in the history
…less waste
  • Loading branch information
Sanne committed Jul 18, 2024
1 parent 7ec1fd6 commit b373bc0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ RemovedResourceBuildItem enhancedCharsetSubstitutions() {
Collections.singleton("oracle/nativeimage/CharacterSetFeature.class"));
}

@BuildStep
RemovedResourceBuildItem removeJndiSupport() {
return new RemovedResourceBuildItem(ArtifactKey.fromString("com.oracle.database.jdbc:ojdbc11"),
Collections.singleton("oracle/net/jndi/JndiAttrs.class"));
}

@BuildStep
NativeImageResourceBundleBuildItem additionalResourceBundles() {
return new NativeImageResourceBundleBuildItem("oracle.net.mesg.NetErrorMessages");
Expand Down

0 comments on commit b373bc0

Please sign in to comment.