stevesaliman / gradle-properties-plugin

Gradle plugin to simplify loading project properties from external environment specific files
Apache License 2.0
192 stars 28 forks source link

Can this work with org.gradle.java.home? #38

Open xeruf opened 3 years ago

xeruf commented 3 years ago

I need to use a particular JDK version with Gradle in a project, so I set org.gradle.java.home in gradle-local.properties and applied the plugin. Unfortunately, this didn't seem to change anything. Placing the same line into gradle.properties had the desired effect.

Vampire commented 2 years ago

This cannot work. Gradle does special handling for some properties in the standard files like JVM arguments or java home value, because it of course needs those values before the build actually starts.

This plugin can only ever work when the build is actually running already, so such properties cannot have any effect in files specific to this plugin.