play-services-plugins
play-services-plugins copied to clipboard
org.gradle.java.home should not be a project-level
Describe the bug Attempting to build the project produces the following error:
Value '/usr/local/buildtools/java/jdk8/' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)
This is because org.gradle.java.home is defined in the gradle.properties file included in the project. Since the location of Java will differ from one user's machine to the next, this property should be defined as a local user property, not a project property. The path Java should be configured via the JAVA_HOME environment variable or a gradle properties file that is not checked into version control.
To Reproduce Steps to reproduce the behavior:
- git clone https://github.com/google/play-services-plugins.git
- cd play-services-plugins/google-services-plugin
- gradle build
Expected behavior builds successfully
Thanks for the report. There's an in-progress PR from @TacoTheDank (thanks TacoTheDank!) https://github.com/google/play-services-plugins/pull/33/files#diff-16b500feb7ba5b406b53040efc7b17ac, which should address this.