I've started using Gradle tooling API and found question: Is there any way to use Gradle wrapper as Gradle installation from Tooling API? I need to ignore any Gradle installation in the system and use Gradle wrapper for target project under Tooling API.
Thanks in advance!
You don't need to set this. This is the default behavior: tooling API will try to read
gradle/wrapper/gradle-wrapper.propertiesin your project to find appropriate distribution that will be used according to a test in https://github.com/gradle/gradle/blob/7dd276a91d9e22248306584afe04171fd86db529/subprojects/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DistributionFactoryTest.groovy#L44