From 069ffb7dff6a02d18e0066028c0ece7f797cf566 Mon Sep 17 00:00:00 2001 From: Serhii Prodan <22973227+serpro69@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:23:12 +0200 Subject: [PATCH] Update gradle shadow plugin version Fixes java.lang.IllegalArgumentException: Unsupported class file major version 65 Gradle :core:shadowJar task throws the above exception with jackson > 2.16.0 due to https://github.com/FasterXML/jackson-core/issues/1210 --- buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts | 2 +- cli-bot/build.gradle.kts | 2 +- gradle/libs.versions.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts b/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts index bd7c99e09..7f53a77db 100644 --- a/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts @@ -9,7 +9,7 @@ import org.jetbrains.dokka.gradle.DokkaTask plugins { `java-library` id("org.jetbrains.dokka") - id("com.github.johnrengelman.shadow") + id("com.gradleup.shadow") id("faker-kotlin-conventions") id("faker-pub-conventions") } diff --git a/cli-bot/build.gradle.kts b/cli-bot/build.gradle.kts index 1d728c8e3..a05fc1d22 100644 --- a/cli-bot/build.gradle.kts +++ b/cli-bot/build.gradle.kts @@ -4,7 +4,7 @@ plugins { application kotlin("jvm") id("org.graalvm.buildtools.native") version "0.10.2" - id("com.github.johnrengelman.shadow") + id("com.gradleup.shadow") } val mainFunction = "io.github.serpro69.kfaker.app.KFakerKt" diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e8362a43c..3ec7450cc 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,7 @@ rgxgen = "2.0" snakeyaml = "2.2" plugin-bcv = "0.16.3" plugin-dokka = "1.9.20" -plugin-shadow = "8.1.1" +plugin-shadow = "8.3.0" plugin-semantic-versioning = "0.13.0" plugin-devpublish = "0.4.1" plugin-nexus-publish = "2.0.0" @@ -50,7 +50,7 @@ gradle-plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", v gradle-plugin-bcv = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version.ref = "plugin-bcv" } gradle-plugin-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "plugin-dokka" } gradle-plugin-semantic-versioning = { module = "io.github.serpro69:semantic-versioning", version.ref = "plugin-semantic-versioning" } -gradle-plugin-shadow = { module = "com.github.johnrengelman:shadow", version.ref = "plugin-shadow" } +gradle-plugin-shadow = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "plugin-shadow" } snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "snakeyaml" } gradle-plugin-devpublish = { module = "dev.adamko.gradle:dev-publish-plugin", version.ref = "plugin-devpublish" }