refactor: use platform to manage dependency

1. rename Packer.INSTANCE
2. gradle platform is a good thing (resolved #31)
This commit is contained in:
ReaJason
2025-01-25 20:30:08 +08:00
parent ecbde7dbae
commit 988d751129
89 changed files with 1411 additions and 1347 deletions
+19 -22
View File
@@ -2,36 +2,34 @@ plugins {
id "io.freefair.lombok" version "8.11"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
group = 'com.reajason.javaweb'
version = ''
dependencies {
testImplementation project(":vul:vul-webapp")
testImplementation project(":common")
testImplementation project(":behinder")
testImplementation project(":godzilla")
testImplementation project(":tools:behinder")
testImplementation project(":tools:godzilla")
testImplementation project(':generator')
testImplementation 'javax.servlet:javax.servlet-api:3.0.1'
testImplementation 'javax.websocket:javax.websocket-api:1.1'
testImplementation 'org.java-websocket:Java-WebSocket:1.5.7'
testImplementation 'jakarta.servlet:jakarta.servlet-api:6.0.0'
testImplementation 'org.hamcrest:hamcrest:3.0'
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
testImplementation 'org.slf4j:slf4j-simple:2.0.16'
testImplementation 'com.alibaba.fastjson2:fastjson2:2.0.53'
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')
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:1.11.3'
testImplementation 'org.junit.platform:junit-platform-reporting'
testImplementation 'org.hamcrest:hamcrest'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'org.testcontainers:junit-jupiter'
}
tasks.withType(Test).tap {
@@ -52,7 +50,6 @@ tasks.withType(Test).configureEach {
idea {
module {
excludeDirs -= file('build')
excludeDirs += file('src/main')
}
}