ktorm icon indicating copy to clipboard operation
ktorm copied to clipboard

Ksp does not support kotlin2.1.21

Open Xiao-Yuan-0816 opened this issue 7 months ago • 2 comments

I hope to follow up on the Kotlin version as soon as possible. All of our programs are in Kotlin 2.1.21 version

Xiao-Yuan-0816 avatar Jul 04 '25 22:07 Xiao-Yuan-0816

Has it been resolved? My version 2.2.21 also encountered this issue

huicunjun avatar Dec 04 '25 07:12 huicunjun

我找到了解决方案,就是修改ktorm的源代码,彻底去掉ktlint。

所以,

  1. clone这个项目(已经移除了ktlint):https://github.com/sidian123/ktorm
  2. 本地编译并放到本地仓库:
./gradlew publishToMavenLocal
  1. 在你的项目中,修改版本为:4.1.2-SNAPSHOT
  2. 然后在你的项目中重新构建:
# 避免一些缓存问题
./gradlew --stop
# 构建项目
./gradlew clean assemble

I found a solution: modify the Ktorm source code and completely remove ktlint.

So, here's what you need to do:

  1. Clone this repository (ktlint has already been removed): https://github.com/sidian123/ktorm
  2. Build it locally and publish it to your local Maven repository:
./gradlew publishToMavenLocal
  1. In your project, change the Ktorm version to: 4.1.2-SNAPSHOT
  2. Then rebuild your project:
# To avoid potential caching issues
./gradlew --stop
# Build the project
./gradlew clean assemble

sidian123 avatar Dec 18 '25 14:12 sidian123