git clone http://git-wip-us.apache.org/repos/asf/kafka.git D:\git\kafka
https://kafka.apache.org/downloads.html
安装gradle
到kafka目录下
运行gradle wrapper,解决找不到类
If you just checked out the code, you don't have the gradle wrapper library and you'll get an error message after running `./gradlew`:
"Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain"
扫描二维码关注公众号,回复:
482168 查看本文章
To fix it you need to run `gradle wrapper` first which will download the gradle wrapper (you need to have gradle >= 1.7 installed locally).
运行
./gradlew eclipse
gradle idea
gradle build -x test
其中的-x test表示跳过unit test
https://cwiki.apache.org/confluence/display/KAFKA/Developer+Setup
https://docs.gradle.org/current/userguide/gradle_wrapper.html