From 0dfd30ca04e64aa3b2a2e4111918ce407a897584 Mon Sep 17 00:00:00 2001 From: habara keigo Date: Fri, 24 Oct 2025 12:09:44 +0900 Subject: [PATCH 1/2] Use gradle/actions/wrapper-validation v5 --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62ee4238e..07aacbfb4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,7 +27,7 @@ jobs: distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 + uses: gradle/actions/wrapper-validation@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 - name: Show Version Number id: version From 9d84fad21b76614c200563747e2deeba6351cd0b Mon Sep 17 00:00:00 2001 From: habara keigo Date: Fri, 24 Oct 2025 14:38:31 +0900 Subject: [PATCH 2/2] Do not use jackson-bom to avoid sonatype build failure --- gradle/libraries.versions.toml | 9 ++++----- line-bot-jackson/build.gradle.kts | 1 - line-bot-webhook/build.gradle.kts | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gradle/libraries.versions.toml b/gradle/libraries.versions.toml index 44c8f250c..c3d541d00 100644 --- a/gradle/libraries.versions.toml +++ b/gradle/libraries.versions.toml @@ -2,6 +2,7 @@ retrofit2 = "3.0.0" jjwt = "0.13.0" jackson = "2.20.0" +jackson-annotations = "2.20" assertj = "3.27.6" junit = "6.0.0" junitPlatformLauncher = "6.0.0" @@ -21,11 +22,9 @@ logback = { module = "ch.qos.logback:logback-classic", version = "1.5.19" } okhttp3 = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp3" } okhttp3-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp3" } -jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version.ref = "jackson" } - -jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind" } -jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations" } -jackson-datatype-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" } +jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" } +jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "jackson-annotations" } +jackson-datatype-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", version.ref = "jackson" } findbugs-jsr305 = { module = "com.google.code.findbugs:jsr305", version = "3.0.2" } diff --git a/line-bot-jackson/build.gradle.kts b/line-bot-jackson/build.gradle.kts index 23bfa137d..da14d4b40 100644 --- a/line-bot-jackson/build.gradle.kts +++ b/line-bot-jackson/build.gradle.kts @@ -20,7 +20,6 @@ plugins { } dependencies { - api(platform(libs.jackson.bom)) api(libs.jackson.databind) // Provide configured ObjectMapper. implementation(libs.jackson.datatype.jsr310) } diff --git a/line-bot-webhook/build.gradle.kts b/line-bot-webhook/build.gradle.kts index b0ebc9b19..35b9d28ee 100644 --- a/line-bot-webhook/build.gradle.kts +++ b/line-bot-webhook/build.gradle.kts @@ -21,8 +21,6 @@ plugins { dependencies { - implementation(platform(libs.jackson.bom)) - compileOnly(libs.jackson.annotations) compileOnly(libs.javax.annotation) compileOnly(libs.jakarta.annotation.api)