You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that it's less easy to get the output from setup-java by default in the gradle-build-action, I think a good starting point would be to at least make Gradle aware of the pre-installed Java distributions through this action.
GitHub currently provides all current LTS versions in the hosted tools cache, and it provides env variables to each of their locations, based on the major version. At the time of writing, those are: JAVA_HOME_8_X64, JAVA_HOME_11_X64, and JAVA_HOME_17_X64 (see the runner environment doc).
So I believe a good starting point would be for this action to pass by default a CLI argument that makes Gradle aware of those env variables, such as:
This has the drawback of ignoring this property from the project's gradle.properties, so we could mitigate this by providing an option to disable this behaviour. WDYT?
The issue on the Gradle repo: gradle/gradle#14903
Current workaround:
The text was updated successfully, but these errors were encountered: