Activar Office 2019 Usando Clave De Licencia Kms

How do I get Gradle to detect available JDKs on Windows? From the documentation there is nothing mentioned of any configuration for Toolchain to work on Windows.
Other that to specify custom toolchain locations
org.gradle.java.installations.paths=C:\Program Files\Java\jdk-11,C:\Program Files\Java\jdk-14,C:\Program Files\Java\jdk-15,C:\Program Files\Java\jdk-16