3dc69495f9
Workers usually execute later than task action and does not raise exception to the task. Such behaviour skips task outputs restoration to the pre-execution state. Kotlin compiler on incremental compilation error leaves 'dirty*' files in the build output, forcing Gradle to run non-incrementally on the next build. Fixed it by moving task outputs reset logic into worker as well. ^KT-46406 In Progress