build.gradle.kts
2.1 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
59
60
61
62
63
64
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-identity — users, roles, tenants, permissions. 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")
}
// CRITICAL: pbc-identity may depend on api-v1 and platform-* runtime modules
// (persistence, plugins, i18n, etc.) but NEVER on platform-bootstrap, and
// NEVER on another pbc-*.
//
// • No cross-PBC: enforced by the root build.gradle.kts.
// • No dependency on platform-bootstrap: bootstrap is the application
// entry point that ASSEMBLES PBCs at the top of the stack. Depending
// on it inverts the layering — every change to the HTTP filter or the
// properties bean would force a recompile of every PBC, and a future
// PBC graph would tangle into an unfixable cycle.
dependencies {
api(project(":api:api-v1"))
implementation(project(":platform:platform-persistence"))
implementation(project(":platform:platform-security"))
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.spring.boot.starter.security) // Argon2PasswordEncoder
implementation(libs.jackson.module.kotlin)
testImplementation(libs.spring.boot.starter.test)
testImplementation(libs.junit.jupiter)
testImplementation(libs.assertk)
testImplementation(libs.mockk)
testImplementation(libs.testcontainers.postgres)
testImplementation(libs.testcontainers.junit.jupiter)
}
tasks.test {
useJUnitPlatform()
}