Introduced JSON-based configuration handling for teams using Jackson and validation utilities. Added commands for reloading configurations and creating teams with support for saving and loading team data. Refactored related classes to integrate with the new system.
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
plugins {
|
|
id("java")
|
|
}
|
|
|
|
group = "com.alttd.ctf"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
dependencies {
|
|
compileOnly("com.alttd:Galaxy-API:1.21-R0.1-SNAPSHOT") {
|
|
isChanging = true
|
|
}
|
|
|
|
compileOnly("org.projectlombok:lombok:1.18.32")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.32")
|
|
|
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
|
|
// Start JSON config dependencies
|
|
// Bean Validation API
|
|
implementation("jakarta.validation:jakarta.validation-api:3.0.2")
|
|
// Hibernate Validator (implementation)
|
|
implementation("org.hibernate:hibernate-validator:8.0.2.Final")
|
|
// Validation annotations processing
|
|
implementation("org.hibernate:hibernate-validator-annotation-processor:8.0.2.Final")
|
|
|
|
// Jackson/Dynamic Beans Integration
|
|
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2")
|
|
// Jackson for JSON Parsing
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
|
|
implementation("com.fasterxml.jackson.core:jackson-annotations:2.15.2")
|
|
// End JSON config dependencies
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveFileName.set("CaptureTheFlag.jar")
|
|
} |