feat: scaffold Micronaut+Kotlin service per ACMA-8 v4 architecture
- 4 modules (ingress/processing/delivery/reference) + codec + infra + jobs - Flyway V2.0.0: six aux tables (PROC_STATE/MSG_EVENT/REF_DATA/REQ_TRACK/PUMP_JOB/FLIGHT_STATE) - Lua: snapshot_replace (atomic cover+gen-diff-delete), batch_delete (3:30 sweep) - config: env-externalized secrets, phase A/B switch, ACMA-8 param-table defaults - logback: logstash TCP JSON + traceId MDC - pure-logic tests: identity (I3), schd aggregation max-by-EVENT_ID (FIX #7) - build verified: gradle compile+test green on JDK 25 (Micronaut 5.1 requires JVM 25+) Migrated from legacy repo subdirectory per repo-strategy decision (separate repo per service, org convention). Refs: ACMA-9, ACMA-8 v4, ACMA-6
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.jvm)
|
||||
alias(libs.plugins.micronaut.application)
|
||||
}
|
||||
|
||||
group = "com.gzzn.omms"
|
||||
version = "2.0.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
// Micronaut 5.1 系构件要求 JVM 25+(实测依赖解析结论,修正计划的 JDK 21 口径)
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(25)
|
||||
}
|
||||
|
||||
micronaut {
|
||||
runtime("netty")
|
||||
testRuntime("junit5")
|
||||
processing {
|
||||
incremental(true)
|
||||
annotations("com.gzzn.omms.msgexchange.nextgen.*")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.bundles.micronaut.runtime)
|
||||
implementation(libs.micronaut.data.jdbc)
|
||||
implementation(libs.micronaut.jdbc.hikari)
|
||||
implementation(libs.micronaut.flyway)
|
||||
implementation(libs.micronaut.redis.lettuce)
|
||||
implementation(libs.micronaut.kafka)
|
||||
implementation(libs.micronaut.discovery.eureka)
|
||||
implementation(libs.jackson.dataformat.xml)
|
||||
implementation(libs.jackson.module.kotlin)
|
||||
implementation(libs.logstash.logback.encoder)
|
||||
|
||||
runtimeOnly(libs.mysql.connector.j)
|
||||
runtimeOnly("org.yaml:snakeyaml")
|
||||
|
||||
testImplementation(libs.junit.jupiter)
|
||||
testImplementation("io.micronaut.test:micronaut-test-junit5")
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
Reference in New Issue
Block a user