代码拉取完成,页面将自动刷新
同步操作将从 金猫汇/jpacman ctgu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
plugins {
id 'application'
id 'java'
id 'eclipse'
id 'pmd'
id "com.github.spotbugs" version "$spotbugspluginVersion"
id "info.solidsoft.pitest" version "1.7.4"
}
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
cucumberRuntime {
extendsFrom testImplementation
}
}
repositories {
mavenLocal()
maven{url 'https://maven.aliyun.com/repository/public'}
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
implementation "com.google.guava:guava:$guavaVersion"
compileOnly "com.github.spotbugs:spotbugs-annotations:$spotbugsAnnotationsVersion"
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testImplementation("org.assertj:assertj-core:$assertJVersion")
testImplementation("org.mockito:mockito-core:$mockitoVersion")
testImplementation "io.cucumber:cucumber-java:$cucumberVersion"
testImplementation "io.cucumber:cucumber-junit:$cucumberVersion"
spotbugsPlugins "com.h3xstream.findsecbugs:findsecbugs-plugin:$findsecbugspluginVersion"
}
task defaultTest(type: Test) {
testClassesDirs = sourceSets.defaultTest.output.classesDirs
classpath = sourceSets.defaultTest.runtimeClasspath
}
tasks.withType(JavaCompile){
options.encoding("utf-8")
}
defaultTest {
useJUnitPlatform()
}
//test.dependsOn defaultTest
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty', '--glue', 'nl.tudelft.jpacman.e2e.framework', 'src/test/resources']
}
}
}
pmd {
ruleSetFiles "pmd-rules.xml"
ruleSets = []
}
apply from: "$rootDir/gradle/config/scripts/style.gradle"
apply from: "$rootDir/gradle/config/scripts/coverage.gradle"
coverage.excludePackages = [
]
coverage.excludeClasses = [
]
style.excludePackages = [
]
style.excludeClasses = [
]
jacocoTestReport {
executionData tasks.withType(Test)
reports {
csv.enabled true
}
}
task staticAnalysis(type: GradleBuild) {
tasks = [
'clean',
'checkstyleMain',
'checkstyleTest',
'checkstyleDefaultTest',
'pmdMain',
'pmdTest',
'pmdDefaultTest',
'spotbugsMain',
'spotbugsTest',
'spotbugsDefaultTest',
]
}
spotbugs {
toolVersion = "$spotbugsVersion"
ignoreFailures = false
showStackTraces = true
showProgress = true
effort = 'default'
reportLevel = 'low'
reportsDir = file("$buildDir/reports/spotbugs")
// onlyAnalyze = [ 'mimic.*' ]
maxHeapSize = '2g'
extraArgs = [ '-nested:false' ]
jvmArgs = [ '-Duser.language=en' ]
}
spotbugsTest {
reports {
html {
stylesheet = 'fancy-hist.xsl'
}
}
}
spotbugsMain {
reports {
html {
stylesheet = 'fancy-hist.xsl'
}
}
}
spotbugsDefaultTest {
reports {
html {
stylesheet = 'fancy-hist.xsl'
}
}
}
mainClassName = 'nl.tudelft.jpacman.Launcher'
jar {
archivesBaseName = 'Jpacman'//基本的文件名
archiveVersion = '0.0.3' //版本
manifest { //配置jar文件的manifest
attributes(
"Manifest-Version": 1.0,
'Main-Class': 'nl.tudelft.jpacman.Launcher' //指定main方法所在的文件
)
}
//打包依赖包
from {
(configurations.runtimeClasspath).collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
pitest {
targetClasses = ['nl.tudelft.jpacman.level.*']
threads = 4
outputFormats = ['HTML']
timestampedReports = true
junit5PluginVersion = '0.15'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。