【发布时间】:2019-07-29 21:11:31
【问题描述】:
我最近升级了我的项目。
spring boot: 2.1.6
gradle: 4.10.2
java version 11
jacoco : 0.8.1
checkstyle: 8.1
我的项目构建失败并出现错误:
任务:checkstyleMain FAILED
.gradle\daemon\4.10.2\etc\checkstyle\checkstyle-suppressions.xml(系统找不到指定的路径)
这是我的 gradle 构建文件:
jacoco {
toolVersion = '0.8.1'
}
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'com/emp/contacts/domain',
'com/emp/MyApplication.class'
])
})
}
}
checkstyle {
toolVersion = '8.1'
configFile = new File(rootDir, 'etc/checkstyle/checkstyle.xml')
System.setProperty('checkstyle.cache.file', String.format('%s/%s',
buildDir, 'checkstyle.cachefile'))
}
【问题讨论】:
标签: java gradle checkstyle