gradle / gradle-build-action

Execute your Gradle build and trigger dependency submission
https://github.com/marketplace/actions/gradle-build-action
MIT License
671 stars 97 forks source link

Action adds `org.gradle.java.installations.fromEnv` property which overrides project level setting #1024

Closed bigdaz closed 8 months ago

bigdaz commented 9 months ago

In order to detect built-in JDK installations, the gradle-build-action adds the property org.gradle.java.installations.fromEnv=JAVA_HOME_8_X64,JAVA_HOME_11_X64,JAVA_HOME_17_X64 to ~/.gradle/gradle.properties.

However, if a project specifies org.gradle.java.installations.fromEnv=XXX in a project-level gradle.properties file, then this setting is overridden by the value set by the action in ~/.gradle/gradle.properties.