Hi, I am writing a plugin that manages users' JDKs based on configuration files checked in to the project. My plugin downloads the JDK and sets it as the project SDK when the project is opened.
I would like to be able to run this code before Gradle verifies the JDK, as in some cases the user's project JDK might point to a directory on disk that does not exist, and this fails the Gradle plugin with "Invalid Gradle JDK configuration found"
Is there a way to run code before the Gradle plugin initialises and tries to use the project JDK? I was looking at implementing the "startupActivity" extension, but it seems this is only allowed to bundled plugins. While, "postStartupActivity" gets executed too late.