Skip to content

Migrate from kapt to ksp#1154

Merged
breedx-splk merged 1 commit into
open-telemetry:mainfrom
embrace-io:fractalwrench/use-ksp
Aug 14, 2025
Merged

Migrate from kapt to ksp#1154
breedx-splk merged 1 commit into
open-telemetry:mainfrom
embrace-io:fractalwrench/use-ksp

Conversation

@fractalwrench

Copy link
Copy Markdown
Member

Goal

kapt is in maintenance mode for Kotlin and it's recommend to replace usage of the tool with ksp, which brings performance improvements. This changeset follows the migration steps to apply the ksp plugin in place of kapt.

The main sticking point of the migration was the @AutoService annotation as it relied on kapt to write META-INF files used for service loading. ksp doesn't work on Java code, so I converted all classes that were using @AutoService to Kotlin in #1133 and #1139. In this changeset I've used a replacement library that is capable of processing the @AutoService annotation in a way that ksp understands.

@fractalwrench fractalwrench requested a review from a team as a code owner August 14, 2025 09:43

@LikeTheSalad LikeTheSalad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

@breedx-splk breedx-splk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@breedx-splk breedx-splk merged commit b556bb1 into open-telemetry:main Aug 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants