mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
62 lines
1.9 KiB
Groovy
62 lines
1.9 KiB
Groovy
plugins {
|
|
id "io.freefair.lombok" version "8.11"
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
group = 'com.reajason.javaweb'
|
|
version = ''
|
|
|
|
dependencies {
|
|
testImplementation project(":vul-webapp")
|
|
testImplementation project(":common")
|
|
testImplementation project(":behinder")
|
|
testImplementation project(":godzilla")
|
|
testImplementation project(':generator')
|
|
testImplementation 'org.hamcrest:hamcrest:3.0'
|
|
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
|
testImplementation 'org.slf4j:slf4j-simple:2.0.16'
|
|
testImplementation 'net.bytebuddy:byte-buddy:1.15.1'
|
|
testImplementation 'org.testcontainers:testcontainers:1.20.4'
|
|
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
|
|
testImplementation platform('org.junit:junit-bom:5.11.3')
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testImplementation 'org.junit.platform:junit-platform-reporting:1.11.3'
|
|
}
|
|
|
|
tasks.withType(Test).tap {
|
|
configureEach {
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
jvmArgs += [
|
|
'--add-opens=java.base/java.util=ALL-UNNAMED',
|
|
'--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED',
|
|
'--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime=ALL-UNNAMED'
|
|
]
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
excludeDirs -= file('build')
|
|
}
|
|
}
|
|
|
|
test {
|
|
dependsOn ":vul-webapp:war", ":vul-webapp-expression:war", ":vul-webapp-jakarta:war"
|
|
useJUnitPlatform()
|
|
// maxParallelForks Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
|
// forkEvery = 1
|
|
// systemProperty 'junit.jupiter.execution.parallel.enabled', 'true'
|
|
// systemProperty 'junit.jupiter.execution.parallel.mode.default', 'concurrent'
|
|
finalizedBy jacocoTestReport
|
|
} |