You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2019/04/22 21:12:04 UTC
[incubator-tuweni] 28/32: Fix logic of using credentials
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
commit d1437a12af062c7f427e154e55678a3e7e2e6b05
Author: Antoine Toulme <to...@apache.org>
AuthorDate: Mon Apr 22 05:28:24 2019 -0700
Fix logic of using credentials
---
build.gradle | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/build.gradle b/build.gradle
index 5c19f32..13baa85 100644
--- a/build.gradle
+++ b/build.gradle
@@ -306,12 +306,9 @@ allprojects {
if (!credentialsFound) {
project.logger.info('Reading credentials from environment')
- credentialsFound = System.getenv('NEXUS_USER') != null
- if (credentialsFound) {
- credentials {
- username asfNexusUsername ?: System.getenv('NEXUS_USER')
- password asfNexusPassword ?: System.getenv('NEXUS_PASSWORD')
- }
+ credentials {
+ username project.findProperty('asfNexusUsername') ?: System.getenv('NEXUS_USER')
+ password project.findProperty('asfNexusPassword') ?: System.getenv('NEXUS_PASSWORD')
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org