I am new to Gradle projects and I have one question. I searched the Internet, but I could not find what I needed, or maybe I did not know how to look for it. First, I will tell you my business. I have a Gradle project and I would like to run some automated tests in the future with jenkins, but now I want to try Eclipse. I have oracle jdbc driver in / lib directory and this is my build.gradle
apply plugin: 'java' // In this section you declare where to find the dependencies of your project repositories { jcenter() //mavenCentral() } // In this section you declare the dependencies for your production and test code dependencies { compile 'org.slf4j:slf4j-api:1.7.21' compile 'org.seleniumhq.selenium:selenium-java:2.+' compile 'org.testng:testng:6.+' //compile 'com.oracle:ojdbc14:10.2.0.4.0' //testCompile 'net.sourceforge.jexcelapi:jxl:2.6.12' testCompile 'info.cukes:cucumber-core:1.+' testCompile 'info.cukes:cucumber-java:1.+' testCompile 'info.cukes:cucumber-junit:1.+' testCompile 'junit:junit:4.12' } repositories { flatDir(dir: 'libs')//, name: 'Local libs' } dependencies { compile name: 'ojdbc7' }
I would like to use this jdbc driver in one class, but I don't know how to use it. When I tried with Maven, I used this method "import oracle.jdbc.driver.OracleDriver;" but I think this is not valid for the Gradle project. could you help me? thanks in advance
jdbc ojdbc build.gradle gradle
javitxu
source share