-
- Notifications
You must be signed in to change notification settings - Fork 44
Update Kotlin to 2.2.20 #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Kotlin to 2.2.20 #1113
Conversation
Signed-off-by: ForteScarlet <ForteScarlet@163.com>
Signed-off-by: ForteScarlet <ForteScarlet@163.com>
…tions Signed-off-by: ForteScarlet <ForteScarlet@163.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request updates Kotlin and related build tools to their latest versions, adds support for KGP's ABI validation features, and ensures compatibility across the project.
- Updates Kotlin from 2.1.20 to 2.2.20
- Updates KSP to 2.2.20-2.0.2 and suspend-transform to 2.2.20-0.13.1
- Implements ABI validation configuration with experimental features
Reviewed Changes
Copilot reviewed 38 out of 42 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| gradle/libs.versions.toml | Updates Kotlin, KSP, suspend-transform and Ktor versions |
| buildSrc/src/main/kotlin/AbiValidationConfigs.kt | Adds new configuration for ABI validation |
| Multiple build.gradle.kts files | Enables ABI validation with proper experimental opt-ins |
| wasmJs source files | Adds required @OptIn(ExperimentalWasmJsInterop::class) annotations |
Files not reviewed (1)
- .idea/copyright/simbot.xml: Language not supported
Comments suppressed due to low confidence (1)
tests/spring-boot-starter-test/build.gradle.kts:1
- The copyright header is duplicated. Remove the first copyright block (lines 1-22) since the second one (lines 26+) has the correct year range.
/* Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| /* | ||
| * Copyright (c) 2025. ForteScarlet. | ||
| * | ||
| * Project https://github.com/simple-robot/simpler-robot | ||
| * Email ForteScarlet@163.com | ||
| * | ||
| * This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Lesser General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * Lesser GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the Lesser GNU General Public License | ||
| * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| * | ||
| */ | ||
| | ||
| | ||
| import org.jetbrains.kotlin.gradle.dsl.abi.ExperimentalAbiValidation | ||
| | ||
| /* | ||
| * Copyright (c) 2024-2025. ForteScarlet. |
Copilot AI Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The copyright header is duplicated. Remove the first copyright block (lines 1-22) since the second one (lines 27+) has the correct year range.
| /* | ||
| * Copyright (c) 2025. ForteScarlet. | ||
| * | ||
| * Project https://github.com/simple-robot/simpler-robot | ||
| * Email ForteScarlet@163.com | ||
| * | ||
| * This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Lesser General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * Lesser GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the Lesser GNU General Public License | ||
| * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| * | ||
| */ | ||
| | ||
| import org.jetbrains.kotlin.gradle.dsl.abi.ExperimentalAbiValidation | ||
| | ||
| /* | ||
| * Copyright (c) 2024. ForteScarlet. |
Copilot AI Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The copyright header is duplicated. Remove the first copyright block (lines 1-22) since the second one (lines 26+) provides the original license text.
| */ | ||
| | ||
| import com.google.devtools.ksp.gradle.KspTaskMetadata | ||
| import com.google.devtools.ksp.gradle.KspAATask |
Copilot AI Sep 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The import statement should use the more specific KspTaskMetadata type instead of KspAATask if you're working with metadata tasks, as KspTaskMetadata is the appropriate type for KSP metadata compilation tasks.
| import com.google.devtools.ksp.gradle.KspAATask | |
| import com.google.devtools.ksp.gradle.KspTaskMetadata |
Update:
Support:
close #1099