Supporting multiple DB types config

I am trying to make my application compatible with different databases. I did the following:

  1. Updated the database drivers

image

  1. Updated the datastore properties by checking different database Supported DB types as well as database identifiers
    image

After that when I try to run my application I get the following error. If I uncheck Oracle, then the application runs. It seems that I am missing something in Gradle, am I missing any steps?

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.oracle.ojdbc:ojdbc8:.
     Required by:
         project :

Hi, It looks like the Oracle moved the artifact.
Need to change the implementation in build.gradle:
implementation("com.oracle.ojdbc:ojdbc8")
on
implementation 'com.oracle.database.jdbc:ojdbc8'
Also, according to your request, a ticket was opened to solve the problem, thank you.

1 Like