From 6e60ebc0f48b8e6a0e2967037d5e9116e7a9bafb Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Mon, 25 Sep 2023 22:02:26 +0200 Subject: [PATCH] Fix missing dependency to logs-spy module --- .../primary/LiquibaseModuleConfiguration.java | 4 +++- .../primary/SpringBootMvcModulesConfiguration.java | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/liquibase/infrastructure/primary/LiquibaseModuleConfiguration.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/liquibase/infrastructure/primary/LiquibaseModuleConfiguration.java index 0bfa28b4a6b..a9ed191bdde 100644 --- a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/liquibase/infrastructure/primary/LiquibaseModuleConfiguration.java +++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/liquibase/infrastructure/primary/LiquibaseModuleConfiguration.java @@ -20,7 +20,9 @@ JHipsterModuleResource liquibaseModule(LiquibaseApplicationService liquibase) { .slug(LIQUIBASE) .propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addIndentation().addBasePackage().build()) .apiDoc("Spring Boot - Database Migration", "Add Liquibase") - .organization(JHipsterModuleOrganization.builder().feature(DATABASE_MIGRATION).addDependency(JPA_PERSISTENCE).build()) + .organization( + JHipsterModuleOrganization.builder().feature(DATABASE_MIGRATION).addDependency(JPA_PERSISTENCE).addDependency(LOGS_SPY).build() + ) .tags("server", "spring", "spring-boot", "database", "migration", "liquibase") .factory(liquibase::buildModule); } diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/mvc/web/infrastructure/primary/SpringBootMvcModulesConfiguration.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/mvc/web/infrastructure/primary/SpringBootMvcModulesConfiguration.java index 544111e219d..190b4c86a4b 100644 --- a/src/main/java/tech/jhipster/lite/generator/server/springboot/mvc/web/infrastructure/primary/SpringBootMvcModulesConfiguration.java +++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/mvc/web/infrastructure/primary/SpringBootMvcModulesConfiguration.java @@ -61,6 +61,11 @@ private JHipsterModulePropertiesDefinition properties() { } private JHipsterModuleOrganization mvcServerOrganization() { - return JHipsterModuleOrganization.builder().feature(SPRING_MVC_SERVER).addDependency(SPRING_BOOT_MVC_EMPTY).build(); + return JHipsterModuleOrganization + .builder() + .feature(SPRING_MVC_SERVER) + .addDependency(SPRING_BOOT_MVC_EMPTY) + .addDependency(LOGS_SPY) + .build(); } }