Sha Sha Chu
05/11/2021, 10:24 PMephemient
05/11/2021, 10:34 PM./gradlew -Pkapt.verbose=true
(or the equivalent in gradle.properties) should print out some information about thatSha Sha Chu
05/11/2021, 11:20 PMIncremental annotation processing (apt mode): false
but it doesn’t tell me why it didn’t run incrementallyephemient
05/11/2021, 11:58 PMkapt.incremental.apt=false
or incremental compilation kapt.incremental=false
? hmm.Sha Sha Chu
05/12/2021, 12:32 AMkapt
source code and it looks like there are some other cases when it will turn off incremental kaptif (logger.isInfoEnabled) {
val time = "Took ${System.currentTimeMillis() - startTime}ms."
when {
previousSnapshot == UnknownSnapshot ->
<http://logger.info|logger.info>("Initializing classpath information for KAPT. $time")
classpathChanges == KaptClasspathChanges.Unknown ->
<http://logger.info|logger.info>("Unable to use existing data, re-initializing classpath information for KAPT. $time")
else -> {
classpathChanges as KaptClasspathChanges.Known
<http://logger.info|logger.info>("Full list of impacted classpath names: ${classpathChanges.names}. $time")
}
}
}
KaptTask
ephemient
05/12/2021, 4:02 AM./gradlew --info
(or -i
) would show those (and a lot of other stuff)Sha Sha Chu
05/12/2021, 5:23 PMUnable to use existing data, re-initializing classpath information for KAPT. Took 781ms.
i guess if any files get added to the classpath kapt
can’t run incrementally? earlier in the logs i see:
Task ':xxxxxx:kaptDebugKotlin' is not up-to-date because:
Input property 'classpathStructure$kotlin_gradle_plugin' file /Users/shasha/.gradle/caches/transforms-3/c10f7f9ca3457239899004135492aca1/transformed/output.bin has been added.
Input property 'classpathStructure$kotlin_gradle_plugin' file /Users/shasha/.gradle/caches/transforms-3/418b18a8eb2bb12415828065185d47c2/transformed/output.bin has been added.
Input property 'classpathStructure$kotlin_gradle_plugin' file /Users/shasha/.gradle/caches/transforms-3/0e350fdc77bcd8b6930cec8da974a4e2/transformed/output.bin has been added.
i don’t actually know what those transformed files areAndrey Zinovyev
05/17/2021, 9:37 AM