apalan60 opened a new pull request, #20695: URL: https://github.com/apache/kafka/pull/20695
Under **Gradle 9.1** with **Scala/Java joint compilation**, builds that run with `keepAliveMode=SESSION` can fail in `:core:compileScala` when `javac` receives a non-existent Java output directory on its classpath: ``` Unexpected javac output: warning: [path] bad path element ".../core/build/classes/java/main": no such file or directory error: warnings found and -Werror specified ``` This issue occurs after a clean build because `core/build/classes/java/main` does not exist, as Java classes are written to `classes/scala/main` during joint compilation. With `-Werror` enabled, the resulting `[path]` warning is treated as an error and stops the build. This PR adds a workaround scoped to **SESSION** builds, while continuing to investigate the underlying classpath assembly logic during joint compilation. Related discussion: https://github.com/apache/kafka/pull/20684#issuecomment-3394713911 Tracked by: [KAFKA-19786](https://issues.apache.org/jira/projects/KAFKA/issues/KAFKA-19786) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
