Skip to content

Commit

Permalink
feat: Micronaut 4
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jan 29, 2024
1 parent 623b56e commit 7b1ccad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
def isBuildSnapshot = version.toString().endsWith("-SNAPSHOT")

repositories {
mavenLocal()
mavenCentral()
if (isBuildSnapshot) {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
Expand All @@ -31,24 +32,19 @@ tasks.withType(JavaCompile) {
options.compilerArgs.add("-parameters")
}

configurations.all {
resolutionStrategy {
force("org.slf4j:slf4j-api:1.7.36")
}
}

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

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

compileOnly platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
compileOnly "io.micronaut:micronaut-inject"
compileOnly "io.micronaut:micronaut-validation"
compileOnly "io.micronaut.validation:micronaut-validation"

// kestra
compileOnly group: "io.kestra", name: "core", version: kestraVersion
Expand Down Expand Up @@ -81,9 +77,16 @@ testlogger {
}

dependencies {
testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
// lombok
testAnnotationProcessor "org.projectlombok:lombok:" + lombokVersion
testCompileOnly 'org.projectlombok:lombok:' + lombokVersion

// micronaut
testAnnotationProcessor platform("io.micronaut.platform:micronaut-platform:$micronautVersion")
testAnnotationProcessor "io.micronaut:micronaut-inject-java"
testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
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 Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.15.0-SNAPSHOT
kestraVersion=[0.15,)
micronautVersion=3.10.1
micronautVersion=4.2.2
lombokVersion=1.18.30

0 comments on commit 7b1ccad

Please sign in to comment.