Skip to content

Commit

Permalink
chore: use Kestra Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jun 21, 2024
1 parent 9c7c72b commit 21c0ed3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
35 changes: 23 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,22 @@ tasks.withType(JavaCompile) {
}

dependencies {
// Platform
annotationProcessor enforcedPlatform("io.kestra:platform:$kestraVersion")
implementation enforcedPlatform("io.kestra:platform:$kestraVersion")
api enforcedPlatform("io.kestra:platform:$kestraVersion")

// lombok
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok"
compileOnly "org.projectlombok:lombok:"

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

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

// tika plugins
api (group: 'org.apache.tika', name: 'tika-core', version: '2.9.2') {
Expand Down Expand Up @@ -73,16 +78,17 @@ testlogger {
}

dependencies {
// Platform
testAnnotationProcessor enforcedPlatform("io.kestra:platform:$kestraVersion")
testImplementation enforcedPlatform("io.kestra:platform:$kestraVersion")

// lombok
testAnnotationProcessor "org.projectlombok:lombok:" + lombokVersion
testCompileOnly 'org.projectlombok:lombok:' + lombokVersion
testAnnotationProcessor "org.projectlombok:lombok"
testCompileOnly 'org.projectlombok:lombok'

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

testImplementation platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
testImplementation "io.micronaut.test:micronaut-test-junit5"

// test deps needed only for to have a runner
Expand All @@ -95,8 +101,8 @@ dependencies {

// test
testImplementation "org.junit.jupiter:junit-jupiter-engine"
testImplementation "org.hamcrest:hamcrest:2.2"
testImplementation "org.hamcrest:hamcrest-library:2.2"
testImplementation "org.hamcrest:hamcrest"
testImplementation "org.hamcrest:hamcrest-library"

testImplementation "org.junit.jupiter:junit-jupiter-params"
}
Expand All @@ -105,7 +111,7 @@ dependencies {
* Allure Reports
**********************************************************************************************************************/
dependencies {
testImplementation platform("io.qameta.allure:allure-bom:2.27.0")
testImplementation enforcedPlatform("io.kestra:platform:$kestraVersion")
testImplementation "io.qameta.allure:allure-junit5"
}

Expand Down Expand Up @@ -149,6 +155,11 @@ nexusPublishing {
}
}

tasks.withType(GenerateModuleMetadata).configureEach {
// Suppression this validation error as we want to enforce the Kestra platform
suppressedValidationErrors.add('enforced-platform')
}

jar {
manifest {
attributes(
Expand Down
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
version=0.18.0-SNAPSHOT
kestraVersion=[0.17,)
micronautVersion=4.4.3
lombokVersion=1.18.32
kestraVersion=[0.18,)

0 comments on commit 21c0ed3

Please sign in to comment.