https://kotlinlang.org logo
#gradle
Title
# gradle
s

statmark56

10/07/2023, 5:04 AM
Can we find what subtasks executed inside
kaptGenerateStubsDebugKotlin
or any other task?
v

Vampire

10/08/2023, 1:51 AM
Depends on what you mean. There is no such thing as subtasks.
w

wakingrufus

10/09/2023, 2:16 PM
do you mean other tasks that kaptGenerateStubsDebugKotlin depends on , or do you mean individual task actions kaptGenerateStubsDebugKotlin spawns via the worker API (if any)?
s

statmark56

10/09/2023, 2:19 PM
Hi John! I think the latter one. My situation is I'm curious why the task takes couple of seconds while I believe no kapt registered/applied.
kapt.verbose=true
also not printing any information regarding it. 🤔
w

wakingrufus

10/09/2023, 2:25 PM
if you aren't using any kapt annotation processors, you could remove the kapt plugin from your build. other than that, i dont know how to dig in deeper on that.
v

Vampire

10/09/2023, 2:25 PM
You could maybe try to get more information with
--debug
. Or maybe with the
gradle-profiler
.
w

wakingrufus

10/09/2023, 2:26 PM
yeah --debug is worth trying
sidenote: I can't wait until spring boot supports KSP so I can ditch kapt lol
s

statmark56

10/09/2023, 2:28 PM
Thanks guys. Let me try. It's just out my curiosity. Sometimes kapt works in mysterious way. Haha
2 Views