[ https://issues.apache.org/jira/browse/KAFKA-9948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17223044#comment-17223044 ]
Brajesh Kumar edited comment on KAFKA-9948 at 10/29/20, 5:02 PM: ------------------------------------------------------------------ [~dulvinw] Which command you are using to build kafka? As suggested by [~chia7712] You should use ".*/gradlew*" or can you try running "*gradle build*" instead of just "*gradle*" to build kafka code base. On my Amazon Linux system "*gradle build*" works fine too. was (Author: kbrajesh176): [~dulvinw] Which command you are using to build kafka? As suggested by [~chia7712] You should use ".*/gradlew*" or can you try running "*gradle build*" instead of just "*gradle*" to build kafka code base. > Gradle Issue > ------------ > > Key: KAFKA-9948 > URL: https://issues.apache.org/jira/browse/KAFKA-9948 > Project: Kafka > Issue Type: Bug > Components: build > Affects Versions: 2.4.1 > Environment: gradle -v > ------------------------------------------------------------ > Gradle 6.0.1 > ------------------------------------------------------------ > Build time: 2019-11-18 20:25:01 UTC > Revision: fad121066a68c4701acd362daf4287a7c309a0f5 > Kotlin: 1.3.50 > Groovy: 2.5.8 > Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019 > JVM: 1.8.0_152 (Oracle Corporation 25.152-b16) > OS: Mac OS X 10.15.4 x86_64 > Reporter: Dulvin Witharane > Priority: Blocker > > Can't get Gradle to build kafka. > > Build file '/Users/dulvin/Documents/Work/git/kafka/build.gradle' line: 457 > A problem occurred evaluating root project 'kafka'. > > Could not create task ':clients:spotbugsMain'. > > Could not create task of type 'SpotBugsTask'. > > Could not create an instance of type > com.github.spotbugs.internal.SpotBugsReportsImpl. > > > org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V > > The above error is thrown -- This message was sent by Atlassian Jira (v8.3.4#803005)