Now findJavaCommand in lib.gradle is exposed and it is used by the other .gradle files.