You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by jr...@apache.org on 2019/04/23 13:44:50 UTC
[incubator-tuweni] 30/37: Use simpler logic to get properties
This is an automated email from the ASF dual-hosted git repository.
jrhea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
commit d0ae6825d2e73003ea705dad5a8311ade1aa3f6e
Author: Antoine Toulme <to...@apache.org>
AuthorDate: Mon Apr 22 06:20:48 2019 -0700
Use simpler logic to get properties
---
build.gradle | 6 +++---
gradle.properties | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/build.gradle b/build.gradle
index 4f74202..6c4d57c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -306,10 +306,10 @@ allprojects {
if (!credentialsFound) {
project.logger.info('Reading credentials from environment')
- project.logger.info('Username ' + project.findProperty('asfNexusUsername') ?: System.getenv('NEXUS_USER'))
+ project.logger.info('Username ' + asfNexusUsername)
credentials {
- username project.findProperty('asfNexusUsername') ?: System.getenv('NEXUS_USER')
- password project.findProperty('asfNexusPassword') ?: System.getenv('NEXUS_PASSWORD')
+ username asfNexusUsername
+ password asfNexusPassword
}
}
}
diff --git a/gradle.properties b/gradle.properties
index 7fc6f1f..1b96edc 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1 +1,3 @@
kotlin.code.style=official
+asfNexusUsername=none
+asfNexusPassword=
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org