Skip to content

Commit

Permalink
refactor: migrate to Java ServiceLoader for plugin registration
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Apr 22, 2024
1 parent 9a56d5d commit de45d28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
22 changes: 9 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,13 @@ dependencies {
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"

// micronaut
annotationProcessor platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
annotationProcessor "io.micronaut:micronaut-inject-java"
annotationProcessor "io.micronaut.validation:micronaut-validation-processor"

compileOnly platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
compileOnly "io.micronaut:micronaut-inject"
compileOnly "io.micronaut.validation:micronaut-validation"
// uncomment if the plugin uses reactive types
// compileOnly "io.micronaut.reactor:micronaut-reactor"
compileOnly "io.micronaut:micronaut-jackson-databind"

// kestra
// Kestra
compileOnly group: "io.kestra", name: "core", version: kestraVersion
annotationProcessor group: "io.kestra", name: "processor", version: kestraVersion

// Logs
compileOnly'org.slf4j:slf4j-api:2.0.13'
compileOnly 'ch.qos.logback:logback-classic:1.5.5'

// libs included in the final jar
api group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
Expand Down Expand Up @@ -86,6 +79,9 @@ dependencies {
testImplementation platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
testImplementation "io.micronaut.test:micronaut-test-junit5"

// Kestra
testAnnotationProcessor group: "io.kestra", name: "processor", version: kestraVersion

// test deps needed only for to have a runner
testImplementation group: "io.kestra", name: "core", version: kestraVersion
testImplementation group: "io.kestra", name: "repository-memory", version: kestraVersion
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.16.0-SNAPSHOT
kestraVersion=[0.16,)
version=0.17.0-SNAPSHOT
kestraVersion=[0.17,)
micronautVersion=4.3.7
lombokVersion=1.18.32

0 comments on commit de45d28

Please sign in to comment.