Order classes by recent failures and modification date when feeding them to javac compiler #14332
Labels
a:feature
A new functionality
in:java-plugins
java-library, java, java-base, java-platform, java-test-fixtures
Expected Behavior
Repeated
compileJava
should provide fast turnaround.For instance, if compilation fails, and user edits a file, then Gradle should feed the problematic file first to the compiler, so user sees earlier if the error is fixed or not.
At the same time, if some of the files were modified, it makes sense to schedule them first for the compilation so the user sees if the changed files compile at all.
So it would be nice to have the following order:
Current Behavior
Gradle schedules files in unknown order, and it might take significant time for the first error from
javac
to appear.Context
javac
might take significant time, especially when formal verification tools like https://checkerframework.org/ or https://github.com/google/error-prone are used.I just checked with Java 11 on the command line, and it seems to work:
The text was updated successfully, but these errors were encountered: