mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Our JPS and Gradle plugins handle recompilation of multifile classes differently. JPS plugin delegates handling to the JPS itself, which tracks dependencies via bytecode, and marks classes as dirty when they are affected. So in JPS other parts of multifile classes are recompiled only when a part's signature is changed. In Gradle plugin we handle recompilation ourselves in simpler way: any change in any part leads to a recompilation of all parts of the same multifile class. In future we should improve our Gradle plugin, but for now I'm changing the test so that both JPS and Gradle tests recompile all parts. Also the dummy function is added to make sure that we don't blindly recompile everything when a part is changed.