If a toolchain can't be found it's not downloaded automatically because no toolchain downloaded repositories have been configured. Needs to be added so this works
Error:
Failed to calculate the value of task ':library:compileJava' property 'javaCompiler'.
No matching toolchains found for requested specification: {languageVersion=19, vendor=any, implementation=vendor-specific}.
No locally installed toolchains match (see https://docs.gradle.org/8.1/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.1/userguide/toolchains.html#sub:download_repositories).
If a toolchain can't be found it's not downloaded automatically because no toolchain downloaded repositories have been configured. Needs to be added so this works
Error: