https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
n

natario1

07/13/2022, 1:46 PM
I’d like to ask why plugins are not supported. Is it because K2 changes the plugins API so all plugins must be adapted, or is it because it keeps the API but the underlying implementation is not there yet? I am starting to work on my first plugin this week and I wonder if I should consider/know about K2 when designing the plugin.
m

mglukhikh

07/13/2022, 1:48 PM
K2 changes the plugins API (its frontend part). In
1.7.20-Beta
we'll have some plugins supported (allopen, noargs, parcelize, lombok, atomicfu, sam with receiver). Also cc @dmitriy.novozhilov
👍 1
d

dmitriy.novozhilov

07/13/2022, 1:52 PM
K2 compiler API is completely different from K1 API, so it took some time to migrate official plugins to it If you are interested in compiler plugins I suggest you to check #compiler channel, it contains some discussions about K2 API
n

natario1

07/13/2022, 1:56 PM
Thanks 👍 so AFAIU it’s an unfortunate moment to start a new plugin, since API is quite different, K2 is alpha and yet coming relatively soon. I’ll go with the old API for now.
d

dmitriy.novozhilov

07/13/2022, 1:57 PM
K2 affects mostly frontend API, so it's quite safe to use
IrGenerationExtension
4 Views