Skip to content

Conversation

@ForliyScarlet
Copy link
Member

Update:

  • Kotlin
  • KSP2
  • KSTCP

Support:

  • KGP's abiValidation

close #1099

Signed-off-by: ForteScarlet <ForteScarlet@163.com>
Signed-off-by: ForteScarlet <ForteScarlet@163.com>
…tions Signed-off-by: ForteScarlet <ForteScarlet@163.com>
@ForteScarlet ForteScarlet self-assigned this Sep 12, 2025
@ForteScarlet ForteScarlet added the dependencies 依赖更新相关 label Sep 12, 2025
Copy link

Copilot AI left a 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.

Comment on lines +1 to 28
/*
* 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.
Copy link

Copilot AI Sep 12, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to 27
/*
* 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.
Copy link

Copilot AI Sep 12, 2025

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.

Copilot uses AI. Check for mistakes.
*/

import com.google.devtools.ksp.gradle.KspTaskMetadata
import com.google.devtools.ksp.gradle.KspAATask
Copy link

Copilot AI Sep 12, 2025

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.

Suggested change
import com.google.devtools.ksp.gradle.KspAATask
import com.google.devtools.ksp.gradle.KspTaskMetadata
Copilot uses AI. Check for mistakes.
@ForteScarlet ForteScarlet linked an issue Sep 12, 2025 that may be closed by this pull request
@ForteScarlet ForteScarlet merged commit 733eac1 into v4-dev Sep 12, 2025
5 of 6 checks passed
@ForteScarlet ForteScarlet deleted the to-kt-220 branch September 12, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies 依赖更新相关

3 participants