This implementation assumes that there is a Gradle wrapper included in the project, otherwise it is not possible to know which Gradle version is needed.
To maximize compatibility with most Gradle versions, JDK8 must be used. There are a number of ways to specify this on newer Gradle versions, but for older versions the only thing that seems to work is setting JAVA_HOME.
:eyes: See Gradle support enhancement
(https://github.com/konveyor/analyzer-lsp/issues/598) Adds support for fetching dependencies with Gradle projects. (https://github.com/konveyor/analyzer-lsp/issues/599) Adds support for downloading dependency sources.
JAVA_HOME
.:exclamation: This PR supersedes https://github.com/konveyor/analyzer-lsp/pull/591
:green_circle: Tested against https://github.com/andyjduncan/gradle-example and https://github.com/kissaten/gradle-multi-project-example