1 Star 0 Fork 0

努力学习/JPacman

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
努力学习 提交于 2022-04-22 22:37 . "修改窗口标题"
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'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wyyyds12345/jpacman.git
[email protected]:wyyyds12345/jpacman.git
wyyyds12345
jpacman
JPacman
master

搜索帮助