From 2f69c937b73defff879c2eca755e91f12d167a02 Mon Sep 17 00:00:00 2001 From: "Bu,Shaopeng" Date: Thu, 22 Jun 2017 10:38:44 +0800 Subject: [PATCH] new release --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c8bdc33..7c050b8 100644 --- a/build.gradle +++ b/build.gradle @@ -76,11 +76,13 @@ artifacts { } Properties properties = new Properties() boolean isHasFile = false -if (project.rootProject.findProject('local.properties') != null){ +if (project.rootProject.file('local.properties') != null){ isHasFile = true properties.load(project.rootProject.file('local.properties').newDataInputStream()) + println "1 hasfile:$isHasFile" } bintray { + println "hasfile:$isHasFile" user = isHasFile ? properties.getProperty("bintray.user") : System.getenv("bintray.user") key = isHasFile ? properties.getProperty("bintray.apikey") : System.getenv("bintray.apikey") configurations = ['archives']