How to add OJDBC6.jar to build.gradle file?

I am connecting to Oracle Db in my application and trying to create an application using gradle build. I cannot access OJDBC6.jar from gradle build. let me know how we can add the ojdbc6.jar file to the build.gradle file.

+4
source share
1 answer

You should be able to load the OJDBC dependency as a runtime requirement as follows:

dependencies {
    runtime files('path/to/OJDBC6.jar')
}
+4
source

Source: https://habr.com/ru/post/1612494/


All Articles