Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KT] Split out package-info files into their own compilation for J2KT…
… Web `package-info.java` files are the only Java sources that persist through J2KT as there's no Kotlin equivalent of them. Before J2KT runs we'll run annotation processors and ultimately transpile any outputs to Kotlin. Therefore, there's no need to run them again. However, the current setup has us running annotation processors as second time as part of the Kotlin compilation. The obvious approach would be to simply not pass through `plugins`, however this has two issues: 1. because plugins are exported, some of them will be coming from the `JavaInfo` providers on the `deps`. These `deps` may not be J2KT libraries. 2. this would also disable running any KAPT plugins The easiest way to avoid this problem is to split out the `package-info.java` files into their own Java compilation with annotation processing disabled. We'll then thread this into the Kotlin compilation as an extra dep/export. PiperOrigin-RevId: 587897154
- Loading branch information