mirror of
https://github.com/corda/corda.git
synced 2025-03-15 00:36:49 +00:00
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:
parent
4c68b515f8
commit
83f98839ab
12
build.gradle
12
build.gradle
@ -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 {
|
||||
|
@ -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
BIN
node/lib/ojdbc8.jar
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user