dkandalov/live-plugin

Plugin with project specific dependencies

winterspan opened this issue · 1 comments

This is probably not possible, but I wanted to ask.

Is there any way to have the plugin reference the classes of dependencies of a project? Specifically, I'm writing a plugin that uses reflection to evaluate all of the classes in the currently open project and return some info. It would also need to be able to import annotations from Spring MVC.

Thanks

You can use something like \\ add-to-classpath $PROJECT_PATH/build/classes/kotlin/main to add directories and jar files to plugin classpath. Similar to this example https://github.com/dkandalov/live-plugin/blob/master/plugin-examples/kotlin/additional-classpath/plugin.kts

I guess this could be better documented in the readme.md 🙈