[ 
https://issues.apache.org/jira/browse/KAFKA-19230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013901#comment-18013901
 ] 

Ksolves India Limited commented on KAFKA-19230:
-----------------------------------------------

Thanks for the clarification [~mjsax] 

I tried implementing a local change to fail the build only when the compiler 
emits the “FunctionalInterfaceMethodChanged” warning.

*My approach:*
 * Capture JavaCompile output to a file.

 * Filter for warnings.

 * If the specific warning appears, throw a GradleException to fail the build.

*Issue:*
 * When applying this logic inside the existing subprojects \{ ... } block in 
the root build. gradle, the script parsing fails (likely due to where/how the 
listener and doFirst/doLast blocks are inserted).

*Request:*
 * Do we have any prior tickets/PRs where we failed the build on a specific 
compiler warning (or similar selective warning gating)? An existing example 
would help me align with our patterns and apply the same logic here.

Thanks!

> Fail build for FunctionalInterfaceMethodChanged warning
> -------------------------------------------------------
>
>                 Key: KAFKA-19230
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19230
>             Project: Kafka
>          Issue Type: Task
>          Components: build
>            Reporter: Matthias J. Sax
>            Assignee: Duc Tri Nguyen
>            Priority: Major
>              Labels: beginner, newbie
>
> Cf [https://github.com/apache/kafka/pull/19618]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to