From 19c1424984601f8b57a1a2771f6632b11427bdaf Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Thu, 1 Dec 2016 16:18:29 +0000 Subject: [PATCH] fix build to not require AWS credentials Original commit: elastic/x-pack-elasticsearch@74c7fb5c0f947376f784f4edf821f0fa8014e3b7 --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 06a299360fe..8d13b2a34cd 100644 --- a/build.gradle +++ b/build.gradle @@ -9,8 +9,14 @@ import java.nio.file.Files import java.nio.file.Paths import java.nio.file.StandardCopyOption -project.ext.awsAccessKey = AWS_ACCESS_KEY +if (project.hasProperty("AWS_ACCESS_KEY")) { + project.ext.awsAccessKey = AWS_ACCESS_KEY +} + +if (project.hasProperty("AWS_SECRET_KEY")) { project.ext.awsSecretKey = AWS_SECRET_KEY +} + boolean isWindows = OperatingSystem.current().isWindows() boolean isLinux = OperatingSystem.current().isLinux()