Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin with project specific dependencies #142

Open
winterspan opened this issue Sep 8, 2022 · 1 comment
Open

Plugin with project specific dependencies #142

winterspan opened this issue Sep 8, 2022 · 1 comment

Comments

@winterspan
Copy link

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

@dkandalov
Copy link
Owner

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 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants