How can I use already downloaded Gradle executable from my plugin?

Answered

I want to get the path of the already downloaded Gradle executable from my plugin. Gradle plugin downloads the Gradle to a location similar to the following "{GRADLE_HOME}/wrapper/dists/gradle-5.1.1-all/97z1ksx6lirer3kbvdnh7jtjg/gradle-5.1.1".

I can get Gradle settings using the following code, but I can't get the path to the downloaded Gradle.

GradleSettings.getInstance(project).getLinkedProjectsSettings()

 

4
1 comment

See org.jetbrains.plugins.gradle.service.GradleInstallationManager

0

Please sign in to leave a comment.