From b4bf182e9c384e848f588dfe04277e1d79db3d1d Mon Sep 17 00:00:00 2001 From: Leonid Startsev Date: Wed, 15 May 2024 19:08:42 +0200 Subject: [PATCH] Raise Require-Kotlin-Version to 2.0.0-RC1 because changes related to serializer() when T is non-sealed interface should be synchronized in runtime and plugin intrinsic implementation. See https://github.com/Kotlin/kotlinx.serialization/pull/2565 and https://github.com/JetBrains/kotlin/commit/7c8c65d2914c03101e6deecce0ee3ce3cfb8a101 for details. --- core/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 0969236289..bc105c2e4d 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -32,7 +32,7 @@ kotlin { Implementation-Version is used to determine whether runtime library supports a given plugin feature (e.g. value classes serialization in Kotlin 1.x may require runtime library version 1.y to work). - Compiler plugin may enable or disable features by looking on Implementation-Version. + Compiler plugin may enable or disable features by looking at Implementation-Version. Require-Kotlin-Version is used to determine whether runtime library with new features can work with old compilers. In ideal case, its value should always be 1.4, but some refactorings (e.g. adding a method to the Encoder interface) @@ -63,7 +63,7 @@ tasks.withType().named(kotlin.jvm().artifactsTaskName) { manifest { attributes( "Implementation-Version" to version, - "Require-Kotlin-Version" to "1.4.30-M1", + "Require-Kotlin-Version" to "2.0.0-RC1", ) } }