Files
MemShellParty/integration-test/build.gradle
T
ReaJason 988d751129 refactor: use platform to manage dependency
1. rename Packer.INSTANCE
2. gradle platform is a good thing (resolved #31)
2025-01-25 20:30:08 +08:00

69 lines
2.1 KiB
Groovy

plugins {
id "io.freefair.lombok" version "8.11"
}
group = 'com.reajason.javaweb'
version = ''
dependencies {
testImplementation project(":vul:vul-webapp")
testImplementation project(":common")
testImplementation project(":tools:behinder")
testImplementation project(":tools:godzilla")
testImplementation project(':generator')
testImplementation 'net.bytebuddy:byte-buddy'
testImplementation 'javax.servlet:javax.servlet-api'
testImplementation 'javax.websocket:javax.websocket-api'
testImplementation 'jakarta.servlet:jakarta.servlet-api'
testImplementation 'org.java-websocket:Java-WebSocket'
testImplementation 'com.squareup.okhttp3:okhttp'
testImplementation 'com.alibaba.fastjson2:fastjson2'
testImplementation platform('org.junit:junit-bom')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.platform:junit-platform-reporting'
testImplementation 'org.hamcrest:hamcrest'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'org.testcontainers:junit-jupiter'
}
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('src/main')
}
}
test {
dependsOn(":vul:vul-webapp:war",
":vul:vul-webapp-expression:war",
":vul:vul-webapp-jakarta:war",
":vul:vul-springboot2:bootJar",
":vul:vul-springboot2:bootWar",
":vul:vul-springboot2-webflux:bootJar",
":vul:vul-springboot3:bootJar",
":vul:vul-springboot3-webflux:bootJar",
)
useJUnitPlatform()
finalizedBy jacocoTestReport
}