Compile Kotlin file on the fly and reload it for plugin.

Hello,

I'm developing plugin for shortcuts. One of the requirements is store new shortcuts in Kotlin file. User can edit this file (add or change shortcuts) and after save Kotlin file must be recompiled and used by plugin to change shortcuts accordingly.

I'm interesting how to best compile Kotlin file on the fly and reload it for plugin.

Thank you for help!

0

Please sign in to leave a comment.