The forbidden APIs precommit check runs with the same Java version as Gradle, creating tight coupling between our build JDK and runtime JVM setting. We would like to run this check forked, so we can run it with the runtime JVM regardless of what's being used to build the project.
Since we already require env vars for the Java home of different versions, we could also run it for multiple java versions if so desired.