1 Star 0 Fork 34

ORE04/jpacman ctgu

forked from 金猫汇/jpacman ctgu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build2.gradle 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
tiger54910 提交于 2022-04-24 16:05 . 更新gradle和插件版本
plugins {
id 'application'
id 'java'
id 'jacoco'
id 'checkstyle'
id 'pmd'
id 'com.github.spotbugs' version '4.0.5'
}
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/ore04/jpacman-ctgu.git
[email protected]:ore04/jpacman-ctgu.git
ore04
jpacman-ctgu
jpacman ctgu
spring2022

搜索帮助