- Changeset 004: ON DELETE CASCADE en fk_routine_assignment_task; borrar una rutina del catálogo arrastra sus asignaciones en vez de fallar (test). - El orderIndex de la asignación multi-día lo calcula el backend al final de CADA día destino (antes lo enviaba el front desde el día visible). - MigrationIT con Testcontainers: el changelog completo y el mapeo JPA se verifican contra Postgres 16 real (H2 no detecta su tipado estricto). - DataSeeder delega en InitialDatasetService: una sola fuente de verdad del dataset inicial; la demo solo añade sus extras. - Eliminado .gitkeep de changes/ (WARN de Liquibase en cada arranque).
44 lines
1.5 KiB
Groovy
44 lines
1.5 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.5.15'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
}
|
|
|
|
group = 'es.asepeyo'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.liquibase:liquibase-core'
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
// H2 en test para los tests rápidos de servicio/web. La verificación de las
|
|
// migraciones Liquibase y del mapeo JPA (ddl-auto=validate) se hace contra un
|
|
// Postgres REAL vía Testcontainers (MigrationIT): H2 no detecta
|
|
// incompatibilidades de tipos/SQL propias de Postgres (lección aprendida con
|
|
// el CAST(NULL AS INTEGER) del changeset 003).
|
|
testRuntimeOnly 'com.h2database:h2'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-testcontainers'
|
|
testImplementation 'org.testcontainers:junit-jupiter'
|
|
testImplementation 'org.testcontainers:postgresql'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|