Skip to content

Is Kotlin 1.9.x + moshi-ir 0.23.0 discouraged? #464

Answered by ZacSweers
plnice asked this question in Q&A
Discussion options

You must be logged in to vote

Bunch of questions in there so let me do them individually

What kind of issues are those?

In short, anything using AnalysisHandlerExtension must implement their own support for incremental compilation because KGP does not expose an API for this. KSP and Kapt are built on this as well, but implement their own incremental support as they host their own tasks. As a result, for correctness we need to use KSP.

Secondly, AnalysisHandlerExtension is not supported in K2, so we cannot rely on it. KSP and kapt "work" with K2 insofar as they force their tasks to use a lower version of kotlin rather than K2, so they still run with the old frontend. KSP is working on a new implementation built on to…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@plnice
Comment options

Answer selected by ZacSweers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #459 on July 20, 2023 16:59.