导入idea后一直报错
D:\kafka>gradle idea
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Building project 'core' with Scala version 2.10.6
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\work\Apache-Projects\kafka\build.gradle' line: 388
* What went wrong:
A problem occurred evaluating root project 'kafka'.
> Failed to apply plugin [id 'org.scoverage']
> Could not create an instance of type org.scoverage.ScoverageExtension.
> You can't map a property that does not exist: propertyName=testClassesDir
修改如下:
dependencies {
// For Apache Rat plugin to ignore non-Git files
classpath "org.ajoberstar:grgit:1.7.0"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath 'org.scoverage:gradle-scoverage:2.5.0' // 这里原来是 2.1.0 修改为 2.5.0
}
在 Kafka 源码的 build.