代码拉取完成,页面将自动刷新
plugins {
id 'application'
id 'java'
id 'jacoco'
id 'checkstyle'
id 'pmd'
id 'com.github.spotbugs' version '1.7.1'
}
sourceSets {
defaultTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/default-test/java')
}
resources.srcDir file('src/default-test/resources')
}
}
configurations {
defaultTestCompile.extendsFrom testCompile
defaultTestImplementation.extendsFrom testImplementation
defaultTestRuntime.extendsFrom testRuntime
}
repositories {
mavenCentral()
}
dependencies {
compile "com.google.guava:guava:$guavaVersion"
compileOnly "com.github.spotbugs:spotbugs-annotations:$spotbugsAnnotationsVersion"
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.assertj:assertj-core:$assertjVersion"
}
task defaultTest(type: Test) {
testClassesDirs = sourceSets.defaultTest.output.classesDirs
classpath = sourceSets.defaultTest.runtimeClasspath
}
test.dependsOn defaultTest
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
defaultTest {
useJUnitPlatform()
}
jacoco {
toolVersion = jacocoVersion
}
jacocoTestReport {
executionData tasks.withType(Test)
reports {
csv.enabled true
}
}
checkstyle {
configFile file("checkstyle.xml")
ignoreFailures = false
}
pmd {
ruleSetFiles "pmd-rules.xml"
ruleSets = []
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
task staticAnalysis(type: GradleBuild) {
tasks = [
'clean',
'checkstyleMain',
'checkstyleTest',
'checkstyleDefaultTest',
'pmdMain',
'pmdTest',
'pmdDefaultTest',
'spotbugsMain',
'spotbugsTest',
'spotbugsDefaultTest',
]
}
mainClassName = 'nl.tudelft.jpacman.Launcher'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。