How to use Oracle JDBC driver in Gradle project

前端 未结 7 1253
醉话见心
醉话见心 2020-12-15 19:09

I\'m new with Gradle projects and I have one question. I\'ve searched in Internet but I couldn\'t find what I need or maybe I couldn\'t know how to search it. First I\'m goi

7条回答
  •  情书的邮戳
    2020-12-15 19:47

    Time is 2019 and Oracle finally decided to let "Maven Central becomes a distribution center for the Oracle JDBC drivers".

    For example, if you want to use OJDBC version 19 with Java 8, you can find ojdbc jar in Maven Central. Please be aware there is a typo in group name. It should have been com.oracle.ojdbc instead of com.oracle.jdbc

     repositories {
        mavenCentral()
    }
    
    dependencies {
        compile "com.oracle.ojdbc:ojdbc8:19.3.0.0"
    }
    

提交回复
热议问题