Kotlin incremental compilation: does not work with generated sources such as from dagger, databinding, hilt
Found this issue in our compose samples with mill testing repo. It seems that generated sources by both ksp and databinding don't seem to work.
For now the workaround is to disable the incremental compilation with:
override def kotlincUseBtApi: T[Boolean] = Task {
false
}
but maybe there's a fix for this. Opening the issue to investigate
I think this is related to this . Do you recall @lefou ?
feels like the change here causes the same issue, I'll test it now
EDIT:
I put a relevant PR (https://github.com/com-lihaoyi/mill/pull/6381) although perhaps it needs to be done a bit differently (before it has passing an empty list in the place of sources)
EDIT2:
I think this was an issue with mixed compilation instead, the generated sources in the above cases are java files
I guess the BT-API is not very intuitive or some kind of "grown this way".
Closed by #6381