For Gradle 8.1 we improved incremental compilation after failure compared to previous implementation. We should backport that to 7.x. - [x] #23119 – https://github.com/gradle/gradle/pull/23913 - [x] #23251 – https://github.com/gradle/gradle/pull/23913 - [x] #23226