Support for kapt (for improved Kotlin support)
See original GitHub issueIt was mentioned in #857 that kapt
isn’t supported. Opening this new issue to track support for it.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:38
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Using kapt | Kotlin
Using in Gradle · Annotation processor arguments · Gradle build cache support · Improving the speed of builds that use kapt · Compile...
Read more >Better Annotation Processing: Supporting Stubs in kapt
As discussed in the previous blog post, the problem can be overcome by generating stubs of Kotlin classes before running javac and then...
Read more >Accelerated Kotlin build times with Kotlin Symbol Processing 1.0
"Adding KSP support to Room improved the compilation speed and also ... The Kotlin Annotation Processing Tool (KAPT) works with Java's ...
Read more >Room kapt error when upgrading kotlin or gradle
In my case, I have faced the same issue while I have upgraded "kotlin-gradle-plugin: from 1.5.31 to 1.6.10".
Read more >Kotlin 1.3.30 Brings Kotlin/Native and KAPT Improvements ...
IntelliJ IDEA support for Kotlin 1.3.30 has been improved. Now it is possible to debug coroutines easier; a separate "Async stack trace" shows ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finally merged, I think it’s safe to close the issue now. Please test it folks 😃
It seems like kapt3 in 1.0.6-eap77 ships with an
APT_ONLY
mode https://github.com/JetBrains/kotlin/blob/8afac55a908c80feb7dd7bf7105e0557d34cacce/plugins/kapt3/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt#L88 https://github.com/JetBrains/kotlin/commit/95d12103171315bc2cb71d1a51a564234f0b5477This means any build system can call kotlinc with this option and pass in kotlin source files to generate the java stubs required for the javac annoation processor round and compilation