Failed to apply plugin [id 'org.scoverage']
A problem occurred evaluating root project 'kafka-0.10.0.0-src'.> Failed to apply plugin [id 'org.scoverage']> Could not create an instance of type org.scoverage.ScoverageExtension.&...
·
A problem occurred evaluating root project 'kafka-0.10.0.0-src'.
> 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
修改 build.gradle 文件,将org.scoverage:gradle-scoverage 版本修改,2.1.0修改为2.5.0,重新执行
buildscript {
repositories {
mavenCentral()
jcenter()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
dependencies {
// For Apache Rat plugin to ignore non-Git files
classpath "org.ajoberstar:grgit:1.9.3"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'org.scoverage:gradle-scoverage:2.5.0' ## 将2.1.0修改为2.5.0
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
参考:https://www.jianshu.com/p/a89f07616071
更多推荐
已为社区贡献2条内容
所有评论(0)