From 8dd18b1ef4335f1a267edc5f02da47f340086bd3 Mon Sep 17 00:00:00 2001 From: Ben Manes Date: Wed, 15 Jan 2020 09:08:55 -0800 Subject: [PATCH] Fix publishing snapshot release from CI --- gradle/publish.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/publish.gradle b/gradle/publish.gradle index c7207ef2d3..c6fee4a2c2 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -66,8 +66,8 @@ publishing { url = project.version.releaseBuild ? releasesUrl : snapshotsUrl credentials { - username = project.properties['nexusUsername'] ?: null - password = project.properties['nexusPassword'] ?: null + username = project.properties['nexusUsername'] ?: System.env.'nexusUsername' + password = project.properties['nexusPassword'] ?: System.env.'nexusPassword' } } }