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' } } }