refactor(core): migrate to standard Java ServiceLoader for plugins

Changes:
- add new top level interface `Plugin`
- add new `JsonDeserializer` aware of the `PluginRegistry`
- add new annotation processor for plugin
- migrate to hibernate-validator for the JSR-303 (no bean introspection dependencies)
- update all Validation annotations to be complitant with the JSR-303
- remove all KestraApplicationContext stuffs
- fix some tests

part-of: kestra-io/plugin-template-test#25
part-of: kestra-io/plugin-serdes#103
This commit is contained in:
Florian Hussonnois
2024-04-15 12:40:28 +02:00
committed by Florian Hussonnois
parent 65d7e7c949
commit 56884d5a72
101 changed files with 1437 additions and 777 deletions

View File

@@ -17,7 +17,6 @@ import io.kestra.core.services.*;
import io.kestra.core.tasks.flows.ForEachItem;
import io.kestra.core.tasks.flows.Template;
import io.kestra.core.utils.Either;
import io.micronaut.context.ApplicationContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.inject.Singleton;

View File

@@ -7,6 +7,6 @@ kestra:
type: local
local:
base-path: /tmp/unittest
worker:
server:
liveness:
enabled: false