Running `./gradlew :my-app:test --info` twice in a...
# gradle
e
Running
./gradlew :my-app:test --info
twice in a row, the compileKotlin task shows as
up-to-date
but still takes around 1 second to execute, is this to be expected? Once you have a few projects it adds a few seconds here and there to test startup time which feels incredibly unnecessary
Copy code
> Task :my-app:compileKotlin UP-TO-DATE
Excluding []
Excluding []
Build cache key for task ':my-app:compileKotlin' is 17a575849d631a792fda5556b1b04bd2
Skipping task ':my-app:compileKotlin' as it is up-to-date.
:my-app:compileKotlin (Thread[Daemon worker Thread 3,5,main]) completed. Took 1.179 secs.
v
Maybe you have maaaaany inputs that needed to be considered when calculating the cache key? You could create a build scan and look whether you found more information there and you could use the
gradle-profiler
to investigate deeper.
☝️ 1