build.gradle.kts
1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.spring)
alias(libs.plugins.kotlin.jpa)
alias(libs.plugins.spring.dependency.management)
}
description = "vibe_erp pbc-production — minimal work order PBC. Reacts to SalesOrderConfirmedEvent to auto-spawn drafts; complete() credits finished goods through InventoryApi.recordMovement(PRODUCTION_RECEIPT). INTERNAL Packaged Business Capability."
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
kotlin {
jvmToolchain(21)
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
}
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}
// Eighth PBC. Same dependency rule as the others — api/api-v1 +
// platform/* only, NEVER another pbc-*. Cross-PBC reads happen via
// CatalogApi (validate the output item exists) and SalesOrdersApi
// (look up the source SO when reacting to SalesOrderConfirmedEvent).
// Cross-PBC writes happen via InventoryApi.recordMovement with the
// new PRODUCTION_RECEIPT reason added in commit c52d0d5.
dependencies {
api(project(":api:api-v1"))
implementation(project(":platform:platform-persistence"))
implementation(project(":platform:platform-security"))
implementation(project(":platform:platform-metadata"))
implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.reflect)
implementation(libs.spring.boot.starter)
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.data.jpa)
implementation(libs.spring.boot.starter.validation)
implementation(libs.jackson.module.kotlin)
testImplementation(libs.spring.boot.starter.test)
testImplementation(libs.junit.jupiter)
testImplementation(libs.assertk)
testImplementation(libs.mockk)
}
tasks.test {
useJUnitPlatform()
}