From f8aeb8c8a787c2f34796edfc33fcda6419606267 Mon Sep 17 00:00:00 2001 From: Dinh Anh Tuan Tran Date: Tue, 1 Aug 2023 15:14:25 +0200 Subject: [PATCH] upgrade to micronaut 4.0.1, note this version only works for micronat 4.0.x --- build.gradle.kts | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- hm-rapids-and-rivers-v2-micronaut/build.gradle.kts | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5d3dab6..f2f8282 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,7 +2,7 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.7.0" + kotlin("jvm") version "1.8.22" id("java") id("maven-publish") } @@ -76,7 +76,7 @@ subprojects { } tasks.withType { - gradleVersion = "7.5.1" + gradleVersion = "8.0.1" } repositories { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 070cb70..f72df95 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/hm-rapids-and-rivers-v2-micronaut/build.gradle.kts b/hm-rapids-and-rivers-v2-micronaut/build.gradle.kts index a1d9b80..1ed44a7 100644 --- a/hm-rapids-and-rivers-v2-micronaut/build.gradle.kts +++ b/hm-rapids-and-rivers-v2-micronaut/build.gradle.kts @@ -1,15 +1,17 @@ import org.gradle.internal.execution.history.changes.ExecutionStateChanges.incremental -val micronautVersion="3.9.4" +val micronautVersion="4.0.1" plugins { kotlin("kapt") - kotlin("plugin.allopen") version "1.7.0" - id("io.micronaut.library") version "3.7.8" + id("io.micronaut.library") version "4.0.2" } dependencies { implementation(project(":hm-rapids-and-rivers-v2-core")) + runtimeOnly("org.yaml:snakeyaml") + implementation("io.micronaut:micronaut-jackson-databind") + implementation("io.micronaut:micronaut-runtime") implementation("io.micronaut.kotlin:micronaut-kotlin-runtime") testImplementation("io.micronaut.test:micronaut-test-junit5")