Repository: jhipster/jhipster-lite
Pull request #12567 (2025-05-17 13:42:03)

Rework Thymeleaf module


Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/client/hexagonal_documentation/package-info.java b/src/main/java/tech/jhipster/lite/generator/client/hexagonal_documentation/package-info.java
deleted file mode 100644
index af290a72d..000000000
--- a/src/main/java/tech/jhipster/lite/generator/client/hexagonal_documentation/package-info.java
+++ /dev/null
@@ -1,2 +0,0 @@
-@tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.client.hexagonal_documentation;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/protobuf/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/protobuf/package-info.java
deleted file mode 100644
index 32a05322c..000000000
--- a/src/main/java/tech/jhipster/lite/generator/server/javatool/protobuf/package-info.java
+++ /dev/null
@@ -1,2 +0,0 @@
-@tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.server.javatool.protobuf;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/database/hibernate2ndlevelcache/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/database/hibernate2ndlevelcache/package-info.java
deleted file mode 100644
index a6937f20d..000000000
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/database/hibernate2ndlevelcache/package-info.java
+++ /dev/null
@@ -1,2 +0,0 @@
-@tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.server.springboot.database.hibernate2ndlevelcache;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/application/SpringBootThymeleafApplicationService.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/application/SpringBootThymeleafApplicationService.java
similarity index 91%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/application/SpringBootThymeleafApplicationService.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/application/SpringBootThymeleafApplicationService.java
index 3ade2a662..ba5cd959b 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/application/SpringBootThymeleafApplicationService.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/application/SpringBootThymeleafApplicationService.java
@@ -1,7 +1,7 @@
-package tech.jhipster.lite.generator.server.springboot.thymeleaf.application;
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.init.application;
 
 import org.springframework.stereotype.Service;
-import tech.jhipster.lite.generator.server.springboot.thymeleaf.domain.SpringBootThymeleafModuleFactory;
+import tech.jhipster.lite.generator.server.springboot.thymeleaf.init.domain.SpringBootThymeleafModuleFactory;
 import tech.jhipster.lite.module.domain.JHipsterModule;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactory.java
similarity index 98%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactory.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactory.java
index fe7a55a7c..3d924f41b 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactory.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.springboot.thymeleaf.domain;
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.init.domain;
 
 import static tech.jhipster.lite.module.domain.JHipsterModule.artifactId;
 import static tech.jhipster.lite.module.domain.JHipsterModule.groupId;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java
similarity index 94%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java
index 0315b6c0d..c21e20339 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/infrastructure/primary/SpringBootThymeleafModuleConfiguration.java
@@ -1,11 +1,11 @@
-package tech.jhipster.lite.generator.server.springboot.thymeleaf.infrastructure.primary;
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.init.infrastructure.primary;
 
 import static tech.jhipster.lite.shared.slug.domain.JHLiteFeatureSlug.SPRING_SERVER;
 import static tech.jhipster.lite.shared.slug.domain.JHLiteModuleSlug.SPRING_BOOT_THYMELEAF;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-import tech.jhipster.lite.generator.server.springboot.thymeleaf.application.SpringBootThymeleafApplicationService;
+import tech.jhipster.lite.generator.server.springboot.thymeleaf.init.application.SpringBootThymeleafApplicationService;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleOrganization;
 import tech.jhipster.lite.module.domain.resource.JHipsterModulePropertiesDefinition;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleResource;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/package-info.java
similarity index 93%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/package-info.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/package-info.java
index 95c6ac9b2..1d314c57d 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/package-info.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/package-info.java
@@ -1,2 +1,2 @@
 @tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.server.springboot.thymeleaf;
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.init;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/template/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/template/package-info.java
new file mode 100644
index 000000000..bdbb5ffe7
--- /dev/null
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/template/package-info.java
@@ -0,0 +1,2 @@
+@tech.jhipster.lite.BusinessContext
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.template;
diff --git a/src/main/resources/generator/dependencies/angular/package.json b/src/main/resources/generator/dependencies/angular/package.json
index 09cde75d6..55632aacc 100644
--- a/src/main/resources/generator/dependencies/angular/package.json
+++ b/src/main/resources/generator/dependencies/angular/package.json
@@ -5,12 +5,12 @@
   "license": "Apache-2.0",
   "dependencies": {
     "@angular-builders/jest": "19.0.1",
-    "@angular/build": "19.2.12",
-    "@angular/cdk": "19.2.16",
-    "@angular/cli": "19.2.12",
+    "@angular/build": "19.2.11",
+    "@angular/cdk": "19.2.15",
+    "@angular/cli": "19.2.11",
     "@angular/compiler-cli": "19.2.10",
     "@angular/core": "19.2.10",
-    "@angular/material": "19.2.16",
+    "@angular/material": "19.2.15",
     "angular-eslint": "19.4.0",
     "jest-environment-jsdom": "29.7.0",
     "jest-preset-angular": "14.5.5",
diff --git a/src/main/resources/generator/dependencies/common/package.json b/src/main/resources/generator/dependencies/common/package.json
index 7b9dc1cc6..6082b6fbd 100644
--- a/src/main/resources/generator/dependencies/common/package.json
+++ b/src/main/resources/generator/dependencies/common/package.json
@@ -12,7 +12,7 @@
     "@tikui/core": "6.3.0",
     "@tsconfig/recommended": "1.0.8",
     "@types/jest": "29.5.14",
-    "@types/node": "22.15.18",
+    "@types/node": "22.15.17",
     "@typescript-eslint/eslint-plugin": "8.32.1",
     "@typescript-eslint/parser": "8.32.1",
     "@vitest/coverage-istanbul": "3.1.3",
@@ -25,7 +25,7 @@
     "eslint-plugin-cypress": "4.3.0",
     "globals": "16.1.0",
     "husky": "9.1.7",
-    "i18next": "25.1.3",
+    "i18next": "25.1.2",
     "i18next-browser-languagedetector": "8.1.0",
     "i18next-http-backend": "3.0.2",
     "jest": "29.7.0",
@@ -33,7 +33,7 @@
     "keycloak-js": "26.2.0",
     "lint-staged": "16.0.0",
     "mkdirp": "3.0.1",
-    "node": "22.15.1",
+    "node": "22.15.0",
     "npm": "11.3.0",
     "npm-run-all2": "8.0.1",
     "onchange": "7.1.0",
@@ -54,7 +54,7 @@
     "stylelint-order": "7.0.0",
     "tailwindcss": "3.4.17",
     "tikuidoc-tikui": "8.0.1",
-    "ts-jest": "29.3.3",
+    "ts-jest": "29.3.2",
     "typescript": "5.8.3",
     "typescript-eslint": "8.32.1",
     "vite": "6.3.5",
diff --git a/src/main/resources/generator/dependencies/react/package.json b/src/main/resources/generator/dependencies/react/package.json
index 2c1d773a8..154519826 100644
--- a/src/main/resources/generator/dependencies/react/package.json
+++ b/src/main/resources/generator/dependencies/react/package.json
@@ -10,7 +10,7 @@
     "@testing-library/react": "16.3.0",
     "@tsconfig/vite-react": "3.4.0",
     "@types/react": "19.1.4",
-    "@types/react-dom": "19.1.5",
+    "@types/react-dom": "19.1.4",
     "@vitejs/plugin-react": "4.4.1",
     "axios": "1.9.0",
     "eslint-plugin-react": "7.37.5",


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactoryTest.java
similarity index 99%
rename from src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactoryTest.java
rename to src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactoryTest.java
index 45e395e4d..9210a3da7 100644
--- a/src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/domain/SpringBootThymeleafModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/thymeleaf/init/domain/SpringBootThymeleafModuleFactoryTest.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.springboot.thymeleaf.domain;
+package tech.jhipster.lite.generator.server.springboot.thymeleaf.init.domain;
 
 import static tech.jhipster.lite.module.infrastructure.secondary.JHipsterModulesAssertions.assertThatModuleWithFiles;
 import static tech.jhipster.lite.module.infrastructure.secondary.JHipsterModulesAssertions.pomFile;