Filter
Exclude
Time range
-
Near
annotationProcessor, kapt, and ksp Explained for Android Developers. Read here: outcomeschool.substack.com/p…
3
8
498
Annotation processors are tools that run during the compilation process and can generate code, modify existing code, or perform other actions based on annotations in your source code. annotationProcessor "com . google . dagger:dagger-compiler:version"
1
2
146
In Gradle, annotationProcessor is a dependency configuration used for specifying dependencies that are annotation processors.
1
2
160
Understanding annotationProcessor, kapt, ksp in Gradle Thread 🧵 #AndroidDev #Kotlin
2
7
58
3,462
Understanding annotationProcessor, kapt, ksp in Gradle In Gradle, annotationProcessor is a dependency configuration used for specifying dependencies that are annotation processors. Annotation processors are tools that run during the compilation process and can generate code, modify existing code, or perform other actions based on annotations in your source code. annotationProcessor "com . google . dagger:dagger-compiler:version" kapt(Kotlin Annotation Processing Tool) and ksp(Kotlin Symbol Processing) do the same things but for Kotlin projects with some improvements. As the name says, kapt is for the Kotlin project. kapt lets us use Java annotation processors with Kotlin code, even if those processors don't have specific support for Kotlin. This is done by generating Java stubs from your Kotlin files that the processors can then read. This stub generation is an expensive operation and has a significant impact on build speed. kapt "com . google . dagger:dagger-compiler:version" ksp is a Kotlin-first alternative to kapt. ksp analyzes Kotlin code directly, which is up to 2x faster. It also has a better understanding of Kotlin language constructs. ksp "com . google . dagger:dagger-compiler:version" So, now for the Kotlin project, it is recommended to use ksp. That's it for now. Follow Outcome School for knowledge-packed content. Keep Learning, Keep Sharing, and Keep Growing. Software engineers like you join Outcome School to achieve the outcome that is a high-paying tech job. Join Outcome School: outcomeschool.com #OutcomeSchool #SoftwareEngineer #Tech #AndroidDev #Android #Kotlin
13
64
1,474
I just added the Spring Boot Configuration Processor and the Maven dependency has a strange scope "annotationProcessor". What's that? Did I miss something?
2
1
14
3,582
8 Jun 2024
Those configurations (scopes) will also need to import the BOM if it's required: annotationProcessor(platform(SpringBootPlugin.BOM_COORDINATES)) developmentOnly(platform(SpringBootPlugin.BOM_COORDINATES)) This is a good question and I'll clarify this in the article.

2
8
Gradleのdependenciesが反映されずにエラーでハマること一日、clean workspaceで何とかなったのですが、次はbuildエラー。メッセージは超不親切。いろいろ削ったり足したりして試した結果、annotationProcessorで追加したプロジェクトがコンパイル時に実行エラーを起こしてるっぽい。 進まないなぁ。。
1
4
545
14 Feb 2023
Para resolver: Vai na pasta build > generated > sources > annotationProcessor > java > main > deleta os MapperImpl que estão lá > clean build > build e voilà! #Java #SpringBoot #MapStruct
3
54
11 Jan 2023
If you're a #Java developer, you've probably run into @​Transactional. Have you ever wanted to build a simplified version of your own? Find a guide on transactional handling using an #annotationprocessor in @JacekDubikowski's new #framework article. medium.com/virtuslab/transac…
2
4
293
22 Jul 2022
Replying to @myfear @otaviojava
Still remember the discussions with @DocFleury about #JBoss and Microkernel Architecture... and all based on #Reflection in #Java. OK, you didn't have #AnnotationProcessor and #Generator built in in Java at that time 😅
1
30 Nov 2021
🔖Found for my students 2 very well-explained articles about "annotationProcessor" vs "implementation" vs "compile" when using gradle. 👨‍🎓👩‍🎓 (links in comments) #gradle #AndroidDev #learnAndroid #GDEjourney #teachingAndroid
2
2
10
That's difficult to say - it depends on how risky it feels. Updating dependencies will usually uncover also other issues and will help you to see a bigger picture. Look how long each build step takes.E.g. I would look for old annotationProcessor and replace with kapt or remove.
1
Correction to this tweet from the past: you'll waste a lot of time if you forget to replace annotationProcessor with kapt when refactroing to Kotlin. Only marginally related to Kotlin per se. I wonder how difficult would it be to make AGP throw an error in case of this mistake?
PSA: don't mix Kotlin and Java in Dagger's infra code because you'll risk wasting a lot of time figuring out bizzare code generation errors. "Kotlin is fully inter-operable with Java" my a$$.
5
Replying to @championswimmer
Spring Framework Core main AnnotationProcessor load nahi ho rahi aur idhar ye chal raha hai.
4
A simple processor annotation that generated String key to Enum Constant and vice-versa mapping 😅😅 github.com/Bloody-Badboy/Enu… #Kotlin #Android #AnnotationProcessor #AnnotationProcessing
1
Small side project to compile annotation expressions in plain java, trivial but functional. 1.0.0 will hit central soon! >> github.com/rmannibucau/simpl… #annotationprocessor #buildtime #compilation #interceptor friendly

1
5