hank-cp / sbp

Plugin framework for Spring Boot based on pf4j.
Apache License 2.0
205 stars 67 forks source link

Can't start with java 8 #20

Closed DobrolubovaJane closed 3 years ago

DobrolubovaJane commented 4 years ago

Hello!

Could you help me?

Error appeared, when I create bean for pluginManager

Error:(88, 23) java: cannot access org.laxture.sbp.SpringBootPluginManager bad class file: /C:/m2/org/laxture/sbp-core/0.1.7/sbp-core-0.1.7.jar!/org/laxture/sbp/SpringBootPluginManager.class class file has wrong version 55.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

hank-cp commented 4 years ago

Emmm....the release binary of SBP in maven central repo is built in JDK11.

Is it possible for you to work with JDK11? It's 2020 now...

DobrolubovaJane commented 4 years ago

We have project with java8 (( But we need to use controllers in our plugins. Maybe you can give me advice, how to add them to pf4j?

hank-cp commented 3 years ago

@DobrolubovaJane v0.1.8 is released to support JDK 8.

DobrolubovaJane commented 3 years ago

@hank-cp Thank you so much!!! I'll try)

DobrolubovaJane commented 3 years ago

@hank-cp it works! Could you please tell me, do we have an opportunity to override bean in main context with bean from plugin context?

hank-cp commented 3 years ago

Overridding beans in main context is not suggested. You might take a look at pf4j extension: https://pf4j.org/doc/extensions.html

DobrolubovaJane commented 3 years ago

Ok, thank you