https://kotlinlang.org logo
#spring
Title
# spring
g

gmariotti

07/18/2019, 5:58 AM
Hi everyone, quick question about the spring boot plugin. Is there any particular reason why the
bootJar
task has a dependency on
kaptKotlin
? My understanding is that kapt is needed only for the metadata generation for the ide, am I wrong?
c

Czar

07/18/2019, 6:13 AM
kapt is annotation processor, metadata for IDE is just one use, annotation processing can do all sorts of things aside from that, including but not limited to code generation
g

gmariotti

07/18/2019, 6:17 AM
Is there a specific need for a spring project?
kaptKotlin
slows down all our microservices pipelines and I'm trying to figure out if I can safely exclude that task or not
s

sdeleuze

07/19/2019, 9:04 AM
How do you determine that
bootJar
has a dependency on
kaptKotlin
?
g

gmariotti

07/19/2019, 9:06 AM
My fault, I actually found where we were applying the kapt plugin. Now I’m trying to understand if it is really needed. Apart for generating metadata, is usually not needed for spring projects, right?
s

sdeleuze

07/19/2019, 9:30 AM
Yes
g

gmariotti

07/19/2019, 10:15 AM
cool, thanks
2 Views