Kotlin/Java installation guide
These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.
asdf and some plugins, then install Java, Kotlin & Gradle
asdf lives in https://github.com/asdf-vm/asdf
Follow its installation instructions, which at the moment of writing were: