初始化:test > servlet

This commit is contained in:
2025-03-12 15:49:01 +08:00
parent dc3cdabdcc
commit 1a884cbcc7
19 changed files with 384 additions and 599 deletions
+33
View File
@@ -0,0 +1,33 @@
plugins {
id 'java'
id 'war'
}
group 'com.msksbr.test.servlet'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
junitVersion = '5.11.0'
}
sourceCompatibility = '8'
targetCompatibility = '8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compileOnly('jakarta.servlet:jakarta.servlet-api:6.1.0')
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
test {
useJUnitPlatform()
}