greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.69k stars 4.66k forks source link

Support KSP to improve compilation speed #677

Open lxzh opened 3 years ago

lxzh commented 3 years ago

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

pandelisgreen13 commented 2 years ago

there is any update ?

XilinJia commented 8 months ago

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 commented 1 month ago

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 commented 1 month ago

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. https://github.com/objectbox/objectbox-java/issues/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.