Skip to content
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

Support KSP to improve compilation speed #677

Open
lxzh opened this issue Oct 14, 2021 · 4 comments
Open

Support KSP to improve compilation speed #677

lxzh opened this issue Oct 14, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@lxzh
Copy link

lxzh commented Oct 14, 2021

Suggestions to improve the build speed: use KSP 1.0 (Kotlin Symbol Processing) instead of kapt to shorten the build time

@pandelisgreen13

This comment was marked as duplicate.

@XilinJia
Copy link

I did the following in build.gradle, only to find that ksp is not supported yet?
ksp {
arg('eventBusIndex', 'ac.mdiq.podcini.ApEventBusIndex')
}

@jens-siebert
Copy link

Hey everyone,

is there any chance that support for KSP will be implemented in EventBus at all? We would like to migrate one of our projects to Kotlin 2.x, where the use of KSP is now mandatory and kapt has been put into maintenance mode (see https://kotlinlang.org/docs/kapt.html)

Also, the use of kapt plugins is considered experimental when using the new K2 compiler, which would force us to skip a major improvement of the new Kotlin version...

@greenrobot-team
Copy link
Collaborator

There are no immediate plans.

For ObjectBox there was discussion about using the X Processing library from Google to enable support for both Java and Kotlin annotation processing. objectbox/objectbox-java#1075

Just to clarify for others (correct me if I'm wrong): using KSP is not mandatory, but recommended. kapt continues to work. kapt will not receive new features, but is still maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants