FWIW, OptaPlanner also works on Kotlin and Scala, not just Java. There is a 100% Kotlin variant of the quarkus-school-timetabling quickstart is also the optaplanner-quickstarts repo - and there's a video of that.
Some users have been successfully using OptaPlanner in jruby or groovy over the years, but your mileage may vary there.