dejan2609 commented on PR #19265: URL: https://github.com/apache/kafka/pull/19265#issuecomment-2755336115
Pardon me for not testing with checkstyle in a first place @mimaison. Anyway, I fixed imports but Gradle build fails again: `warning: [deprecation] newArgumentParser(String) in ArgumentParsers has been deprecated` I will paste complete stack trace here (and will use next comment to present alternatives). ``` dejan@dejan:~/kafka$ ./gradlew checkstyleMain checkstyleTest spotlessCheck Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details > Configure project : Starting build with version 4.1.0-SNAPSHOT (commit id f17682ab) using Gradle 8.10.2, Java 17 and Scala 2.13.15 Build properties: ignoreFailures=false, maxParallelForks=8, maxScalacThreads=8, maxTestRetries=0 > Task :generator:compileJava /home/dejan/kafka/generator/src/main/java/org/apache/kafka/message/MessageGenerator.java:371: warning: [deprecation] newArgumentParser(String) in ArgumentParsers has been deprecated .newArgumentParser("message-generator") ^ error: warnings found and -Werror specified /home/dejan/kafka/generator/src/main/java/org/apache/kafka/message/checker/MetadataSchemaCheckerTool.java:43: warning: [deprecation] newArgumentParser(String) in ArgumentParsers has been deprecated ArgumentParser argumentParser = ArgumentParsers. ^ 1 error 2 warnings > Task :generator:compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':generator:compileJava'. > Compilation failed; see the compiler error output for details. * Try: > Run with --info option to get more log output. BUILD FAILED in 1m 54 actionable tasks: 9 executed, 45 up-to-date dejan@dejan:~/kafka$ ``` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org