Avoid merging old mappings on full recompilation (#9964) This fixes https://github.com/gradle/gradle/issues/9936 Previously even on full recompilation, we merge the old Groovy source-class mappings into the incremental mappings. This PR avoid doing this on full recompilation.
Full recompilation on Groovy-Java joint compilation (#9890) Currently, incremental Groovy compilation only works for files compiled by the Groovy compiler. Java files are compiled by the Java compiler. This PR disables incremental compiler if Java files found because this might cause incorrectness.