Open hopperath opened 5 years ago
If I'm understanding the problem correctly, it looks like the issue is that the plugin is reading the project's gradle.properties file twice. Once before it loads gradle-dev.properties, and once after. That second call is the one that shouldn't be happening.
Some questions that come to mind:
println "Gradle User Home Dir: ${gradle.gradleUserHomeDir}"
to your build.gradle file (anywhere), what is the output?The fact that everything works locally, makes me suspect that #3 will give us a clue. Gradle loads properties from ~/.gradle/gradle.properties after it processes files in the project directory, but if the gradleUserHomeDir property gets changed to point to the project directory, the project's gradle.properties file will be processed twice. I'd like to rule that out if we can.
I have encountered a strange scenario when building locally every works fine, but when building on our build server, gradle reloads the system properties after loading the plugin environment properties. This causes me a problem because it overlays specific properties with their default values in gradle.properties.