gradle-properties-plugin icon indicating copy to clipboard operation
gradle-properties-plugin copied to clipboard

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

Open xeruf opened this issue 4 years ago • 1 comments

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.

xeruf avatar Dec 14 '20 11:12 xeruf

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.

Vampire avatar Feb 02 '22 02:02 Vampire