mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +00:00
Only include the Oracle repository if the username/password properties are set. (#544)
This commit is contained in:
parent
065fdbf647
commit
5de831c1d3
18
build.gradle
18
build.gradle
@ -238,14 +238,16 @@ allprojects {
|
||||
jcenter()
|
||||
maven { url 'https://jitpack.io' }
|
||||
maven { url "$artifactory_contextUrl/corda-releases" } // cordform-common
|
||||
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.findProperty("mavenOracleUsername") ?: ""
|
||||
password = project.findProperty("mavenOraclePassword") ?: ""
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user