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
The following commit(s) were added to refs/heads/master by this push:
new d1437a1 Fix logic of using credentials
d1437a1 is described below
commit d1437a12af062c7f427e154e55678a3e7e2e6b05
Author: Antoine Toulme <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]