4

I am connecting to Oracle Db in my application and trying to build the app with gradle build. I am unable to access the OJDBC6.jar from gradle build. can some one please, let me know that, how can we add the ojdbc6.jar into the build.gradle file.

kdabir
  • 9,623
  • 3
  • 43
  • 45
Sai Kiran
  • 61
  • 3
  • 5
  • If possible you should use a binary repository like Artifactory or Nexus to pull this jar from. – Ethan Oct 21 '15 at 00:54

1 Answers1

5

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

dependencies {
    runtime files('path/to/OJDBC6.jar')
}
Craig Trader
  • 15,507
  • 6
  • 37
  • 55