i wouldn't call it painless since every patch release you have to explicitly install when the majority of people just want to maintain the latest patch release for a major version.
for old java versions I would recommend
https://github.com/mdogan/homebrew-zulu. for Kotlin, someone should really just make the equivalent tap