695f202e46
This commit changes how generated sources are added to the Gradle JavaCompile task. Previously, directory was added to sources which caused issues with annotation processors that only generate Kotlin sources. I.e. JavaCompile task was executed but no java sources existed. Now, only generated Java sources are added to the JavaCompile task. This means that if only Kotlin sources are generated JavaCompile task will be skipped. Fixes: KT-31127 Test: Kapt3IT.testKotlinProcessorUsingFiler