Clone
Bo Zhang <bo@gradle.com>
committed
on 06 Jul
Follow-ups of incremental Groovy compilation (#9848)
This PR:

- Closes https://github.com/gradle/gradle/issues/9785 and https://github.com/Show more
Follow-ups of incremental Groovy compilation (#9848)

This PR:

- Closes https://github.com/gradle/gradle/issues/9785 and https://github.com/gradle/gradle/issues/9380

- Adds tests for

 - Multiple classes in a same source Groovy file.

 - Moving files between source set roots

Previously, removing a source directory from a source set would break the Java (and Groovy) incremental compiler (https://github.com/gradle/gradle/issues/9380). This PR detects this case and runs a full recompilation.

It also records relative path instead of absolute path in Groovy incremental compilation to make it build-cache-friendly. Show less

green-master + 253 more