mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-08 16:13:04 +02:00
Previously, we used a per-project directory glob for Kotlin and Java sources, which (1) was overly general, (2) ran afoul of Gradle's rules about "if you look in a directory you must depend on it", and (3) required us to make a fake subproject in the shared/ folder because Spotless doesn't like sources outside the project directory. Now, we delay complete evaluation of the root project until subprojects are complete, and then add a single Spotless operation at the top level that uses the subprojects' compile tasks to find exactly the files to format.