openmhealth / schemas

A repository of Open mHealth schemas.
Apache License 2.0
71 stars 45 forks source link

Could not find property 'bintray_user' on com.jfrog.bintray.gradle.BintrayExtension_Decorated@1177f25c #3

Closed ascooper57 closed 9 years ago

ascooper57 commented 9 years ago

Same failure on Mac via command line and in Idea IntelliJ

$ javac -version javac 1.7.0_71

$ gradle --version

Gradle 2.3

Build time: 2015-02-16 05:09:33 UTC Build number: none Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy: 2.3.9 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.7.0_71 (Oracle Corporation 24.71-b01) OS: Mac OS X 10.10.3 x86_64

$ gradle clean Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.1/gradle-bintray-plugin-1.1.pom Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.2.1/httpcomponents-client-4.2.1.pom Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3.pom Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.2.1/httpcomponents-core-4.2.1.pom Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.1/gradle-bintray-plugin-1.1.jar Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.jar Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.jar Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 11.848 secs

ascooper57 commented 9 years ago

Should I use a solution as was implemented in an unrelated project?

https://github.com/embulk/embulk/commit/4019e0fd80ec997f5e411026dd5f87e70d2ae5ad

ascooper57 commented 9 years ago

I worked around this issue by creating a gradle.properties file:

more ~/.gradle/gradle.properties bintray_user= bintray_api_key=

I still believe that the better solution is to enhance the build.gradle file with the ternary operators as show in the previous comment.

emersonf commented 9 years ago

Those properties are used to push binaries to JCenter. I'll check if I can get Gradle to ignore those properties until the task to push is called. If not, I'll put in the ternaries. Thanks!

emersonf commented 9 years ago

Fixed with ternary operators, albeit slightly different ones since hasProperty wasn't working in the bintray definition.

ascooper57 commented 9 years ago

I just did a git pull and I do see your edits. However:

gradle clean install

FAILURE: Build failed with an exception.

BUILD FAILED

emersonf commented 9 years ago

Sigh, got a false positive on one of my tests. This should really fix it.

ascooper57 commented 9 years ago

Hello,

Your latest edits work perfectly. Thank you for resolving this so quickly.

Alan Cooper