Integration tests in database mode - add Oracle 12.1 JDBC driver directly into libs dir (#1399)

Stop downloading Oracle driver for Oracle 12.1 from Oracle proprietary repo as it's very unreliable,
and from time to time the dependency cannot be dowloaded. Issue: "Could not parse POM https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/orai18n/12.2.0.1/orai18n-12.2.0.1.pom Invalid byte 1 of 1-byte UTF-8 sequence."
This commit is contained in:
szymonsztuka 2018-09-19 20:49:00 +01:00 committed by GitHub
parent 4c68b515f8
commit 83f98839ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 21 deletions

View File

@ -240,18 +240,6 @@ allprojects {
maven { url "$artifactory_contextUrl/corda-dependencies" }
maven { url 'https://jitpack.io' }
maven { url "$artifactory_contextUrl/corda-releases" } // cordform-common
if (project.hasProperty("mavenOracleUsername") && project.hasProperty("mavenOraclePassword")) {
maven {
// For integrationTest task when running against Oracle database the JDBC driver is in Oracle Maven repository with login access only,
// setup an account on https://login.oracle.com/oaam_server/login.do
// provide credentials to Gradle task by -PmavenOracleUsername=... -PmavenOraclePassword=...
url "https://www.oracle.com/content/secure/maven/content"
credentials {
username = project.property("mavenOracleUsername")
password = project.property("mavenOraclePassword")
}
}
}
}
configurations {

View File

@ -202,15 +202,7 @@ dependencies {
runtime "com.microsoft.sqlserver:mssql-jdbc:6.2.1.jre8"
break
case "integration-oracle" :
runtime ("com.oracle.jdbc:ojdbc8:12.2.0.1") { //exclude unnecessary or conflicting libraries
exclude group: "com.oracle.jdbc", module: "ucp"
exclude group: "com.oracle.jdbc", module: "ons"
exclude group: "com.oracle.jdbc", module: "xmlparserv2"
exclude group: "com.oracle.jdbc", module: "xdb6"
exclude group: "com.oracle.jdbc", module: "oraclepki"
exclude group: "com.oracle.jdbc", module: "osdt_cert"
exclude group: "com.oracle.jdbc", module: "osdt_core"
}
runtime files("lib/ojdbc8.jar")
break
case "integration-oracle-11" :
runtime files("lib/ojdbc6.jar")

BIN
node/lib/ojdbc8.jar Normal file

Binary file not shown.