Kotlin JSR223 Scripting Engine

In recent Kotlin versions JSR223 Kotlin Scripting Engine does not work properly,
but it was worked in e.g. Kotlin 1.6.0.

It outputs an error relating to null CompilerConfiguration.

It needs a special trick?