Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 489baa4 commit 9ae8c88Copy full SHA for 9ae8c88
1 file changed
build.gradle.kts
@@ -28,8 +28,8 @@ repositories {
28
url = uri("https://www.oracle.com/content/secure/maven/content")
29
credentials {
30
// you may set this properties using gradle.properties file in the root of the project or in your GRADLE_HOME
31
- username = project.property("ORACLE_OTN_USER") as String? ?: System.getenv("ORACLE_OTN_USER")
32
- password = project.property("ORACLE_OTN_PASSWORD") as String? ?: System.getenv("ORACLE_OTN_PASSWORD")
+ username = if (project.hasProperty("ORACLE_OTN_USER")) project.property("ORACLE_OTN_USER") as String? else System.getenv("ORACLE_OTN_USER")
+ password = if (project.hasProperty("ORACLE_OTN_PASSWORD")) project.property("ORACLE_OTN_PASSWORD") as String? else System.getenv("ORACLE_OTN_PASSWORD")
33
}
34
35
mavenCentral()
0 commit comments