I think I remember someone or blog or an issue, about some work to allow define explicitly a JVM to run the gradle build script. The idea was that while toolchain allow to setup properly the project build it didn’t configure with which JVM gradle should be run (i.e. it takes the current JVM).
But I cannot find a reference of that. I’m not sure if I dreamt.
All my searches point to the usual toolchain for JVM projects. But not to run gradle itself.