Gradle jdk toolchain - what is the resolving algor...
# community-support
e
Gradle jdk toolchain - what is the resolving algorithm
v
What do you mean exactly? Besides the information on https://docs.gradle.org/current/userguide/toolchains.html
e
Yeah, sorry for the misleading message. My coworker has an issue with gralde sync in Android Studio. It shows an untrusted certificate error. And it means it uses JDK where a corporate certificate was not added. I was thinking it is because for convention plugins we set a toolchain specification and that JDK is not patched with a certificate. We checked the '~/.gradle/' and there is no 'jdk' folder. So I assume gradle takes some existing jdk. But which is the question. Thanks for the link - I see there it is possible to troubleshoot the picked jdk.
v
Yes, if you do not disable detection, it uses detected JDKs as documented there 🙂
e
I just use an init script plugin to add corp cert
it's totally a hack but it works
👍 1
e
Thanks! Maybe we should change approach
We have the kotlin script that updates all found JDKs
But this requires to re-run if something changes